archrelease: copy trunk to community-any
[arch-community.git] / python-traits / repos / community-x86_64 / PKGBUILD
blob033deca41942f77be3382fc4a0ca048d4f00ca4f
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
3 pkgname=python-traits
4 pkgver=6.4.1
5 pkgrel=2
6 pkgdesc="Explicitly typed attributes for Python"
7 arch=('x86_64')
8 url="https://github.com/enthought/traits"
9 license=('BSD')
10 depends=('python')
11 optdepends=('python-numpy: to support the trait types for arrays'
12             'python-traitsui: to support Gui Views')
13 makedepends=('python-setuptools')
14 source=("traits-${pkgver}.tar.gz::https://github.com/enthought/traits/archive/${pkgver}.tar.gz")
15 sha256sums=('974b682d112dfb531136d1185fe8d5f05ffd9e54a76b6dcd9715de85655ee30c')
17 build() {
18   cd traits-$pkgver
20   python setup.py build
23 package() {
24   cd traits-$pkgver
26   python setup.py install --root="$pkgdir"/ --optimize=1
28   install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE