mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 20:07:14 +08:00
24 lines
870 B
Bash
24 lines
870 B
Bash
# $Id: PKGBUILD 72744 2010-03-19 11:35:50Z allan $
|
|
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
|
# Contributor: Kritoke <kritoke@gamebox.net>
|
|
|
|
pkgname=pycrypto
|
|
pkgver=2.3
|
|
pkgrel=2
|
|
pkgdesc="A collection of cryptographic algorithms and protocols, implemented for use from Python."
|
|
arch=(i686 x86_64)
|
|
depends=('python2')
|
|
url="http://www.dlitz.net/software/pycrypto/"
|
|
license=(custom)
|
|
source=(http://ftp.dlitz.net/pub/dlitz/crypto/${pkgname}/${pkgname}-${pkgver}.tar.gz)
|
|
sha256sums=('4f11e85fbcf13960373650fc2dae8f088f9b001f07fb6d3efb2fcb5334987182')
|
|
|
|
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}/"
|
|
}
|