summaryrefslogtreecommitdiff
path: root/community/python2-traits/PKGBUILD
blob: 5ca8ea7fceb899b26761e592a97b9c6cd19aec52 (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
# $Id: PKGBUILD 96105 2013-08-20 06:32:41Z lcarlier $
# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>

pkgname=python2-traits
pkgver=4.3.0
pkgrel=2
pkgdesc="Explicitly typed attributes for Python"
arch=('i686' 'x86_64' 'mips64el')
url="https://github.com/enthought/traits"
license=('BSD')
depends=('python2-numpy')
makedepends=('python2-setuptools')
options=(!emptydirs)

source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/traits/archive/${pkgver}.tar.gz")
md5sums=('f78c15c44e0f965cc2ab799806a80388')

build() {
  cd "$srcdir"/traits-$pkgver

  python2 setup.py build
}

package() {
  cd "$srcdir"/traits-$pkgver

  python2 setup.py install --root="$pkgdir"/ --optimize=1

  install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}