summaryrefslogtreecommitdiff
path: root/extra/pycrypto/PKGBUILD
blob: 1f15d7b14a08d9c9c54f8d902a1a46ffff1e452a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# $Id: PKGBUILD 96778 2010-10-24 17:01:27Z ibiru $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Kritoke <kritoke@gamebox.net>

pkgname=pycrypto
pkgver=2.3
pkgrel=1
pkgdesc="Collection of cryptographic algorithms and protocols, implemented for use from Python."
arch=(i686 x86_64 'mips64el')
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}/"
}