diff options
Diffstat (limited to 'community/python2-traits/PKGBUILD')
-rw-r--r-- | community/python2-traits/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/community/python2-traits/PKGBUILD b/community/python2-traits/PKGBUILD new file mode 100644 index 000000000..8c6e51e36 --- /dev/null +++ b/community/python2-traits/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 75625 2012-08-27 16:55:19Z aginiewicz $ +# Maintainer: Andrzej Giniewicz <gginiu@gmail.com> + +pkgname=python2-traits +pkgver=4.2.0 +_githubtag=0afc79d +pkgrel=2 +pkgdesc="Explicitly typed attributes for Python" +arch=('i686' 'x86_64') +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 +} + |