# $Id: PKGBUILD 75625 2012-08-27 16:55:19Z aginiewicz $ # Maintainer: Andrzej Giniewicz pkgname=python2-traits pkgver=4.2.0 _githubtag=0afc79d pkgrel=2 pkgdesc="Explicitly typed attributes for Python" arch=('i686' 'x86_64' 'mips64el') url="http://code.enthought.com/projects/traits/" license=('BSD') depends=('python2-numpy') makedepends=('python2-distribute') options=(!emptydirs) source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/traits/tarball/${pkgver}") md5sums=('835c83c320ed1109ca05fa4ae4556828') build() { cd "$srcdir"/enthought-traits-${_githubtag} python2 setup.py build } package() { cd "$srcdir"/enthought-traits-${_githubtag} python2 setup.py install --root="$pkgdir"/ --optimize=1 install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }