updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / pycrypto-git / PKGBUILD
blob73f99f8b7e45809aaf5eb3eacf7b6394864e8698
1 pkgname=pycrypto-git
2 pkgver=20111204
3 pkgrel=2
4 pkgdesc="Collection of cryptographic algorithms and protocols, implemented for use from Python. Compatible with Python3"
5 arch=(i686 x86_64)
6 depends=('python')
7 makedepends=('git')
8 url="http://www.dlitz.net/software/pycrypto/"
9 license=(custom)
11 _gitroot="git://github.com/dlitz/pycrypto.git"
12 _gitname="${pkgname}"
14 build() {
15   cd "$srcdir"
16   msg "Connecting to GIT server...."
18   if [ -d $_gitname ] ; then
19     cd $_gitname && git pull origin
20     msg "The local files are updated."
21   else
22     git clone $_gitroot $_gitname
23   fi
25   msg "GIT checkout done or server timeout"
26   msg "Starting make..."
28   
31 package() {
32   cd "${srcdir}/${pkgname}"
33   python setup.py install --root="${pkgdir}" --optimize=1
34   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
35   install -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/"
36   cp -r LEGAL "${pkgdir}/usr/share/licenses/${pkgname}/"