summaryrefslogtreecommitdiff
path: root/community/python2-traits
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-29 00:04:41 +0000
committerroot <root@rshg054.dnsready.net>2012-08-29 00:04:41 +0000
commit498a4346616c33beac56d48a246cf27fe3812341 (patch)
tree333cfc0154a280d9dcf65c08900913200c33d988 /community/python2-traits
parent559da5e6e5aff9ccc57e29b6a91c35a528424b6c (diff)
Wed Aug 29 00:04:40 UTC 2012
Diffstat (limited to 'community/python2-traits')
-rw-r--r--community/python2-traits/PKGBUILD32
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
+}
+