summaryrefslogtreecommitdiff
path: root/pcr/pyutil/PKGBUILD
blob: fbeee059e511046999878e1d989d1b48f6bc468e (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
33
34
# Maintainer (AUR): Nicolas Pouillard <nicolas.pouillard@gmail.com>
# Contributor (AUR): Peter Simons <simons@cryp.to>

# parabola changes and rationale:
#  no changes.

pkgname=pyutil
pkgver=2.0.0
pkgrel=1
pkgdesc="general-purpose python library (used by tahoe-lafs)"
arch=('any')
url='https://pypi.python.org/pypi/pyutil'
license=('GPL2')
depends=('python2' 'python2-simplejson' 'zbase32' 'python2-twisted')
makedepends=('python2-setuptools')
source=("https://pypi.python.org/packages/source/p/pyutil/pyutil-${pkgver}.tar.gz")
md5sums=('025a06985691133479500139a3729909')

build(){
    cd "$srcdir/pyutil-$pkgver"
    python2 setup.py build
}

BUILDENV+=(!check)
check() {
    cd "$srcdir/pyutil-$pkgver"
    python2 setup.py test
}

package(){
    cd "$srcdir/pyutil-$pkgver"
    python2 setup.py install --root="$pkgdir" --prefix='/usr' --optimize=1
    rm -r "$pkgdir/usr/pyutil"
}