core/python2-crypto/PKGBUILD

31 lines
1.0 KiB
Bash
Raw Normal View History

#
# Platform Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrian Chaves Fernandez (Gallaecio) <adriyetichaves@gmail.com>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Kritoke <kritoke@gamebox.net>
pkgname=python2-crypto
_pkgname=pycrypto
pkgver=2.6
pkgrel=2
pkgdesc="A collection of cryptographic algorithms and protocols, implemented for use from Python."
arch=("x86_64")
depends=('python2')
provides=('pycrypto')
conflicts=('pycrypto')
replaces=('pycrypto')
url="http://www.dlitz.net/software/pycrypto/"
license=(custom)
source=(http://ftp.dlitz.net/pub/dlitz/crypto/${_pkgname}/${_pkgname}-${pkgver}.tar.gz)
sha256sums=('7293c9d7e8af2e44a82f86eb9c3b058880f4bcc884bf3ad6c8a34b64986edde8')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python2 setup.py build
python2 setup.py install --root="${pkgdir}" --optimize=1
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/"
cp -r LEGAL "${pkgdir}/usr/share/licenses/${pkgname}/"
}