summaryrefslogtreecommitdiff
path: root/community/python2-traits/PKGBUILD
blob: 8c6e51e3687a3f77b8bf747710797c33cf00c4ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
}