diff options
author | Tim Savannah | 2017-06-18 03:29:13 -0400 |
---|---|---|
committer | Tim Savannah | 2017-06-18 03:29:13 -0400 |
commit | 562a23d5e45add597c633d563ffdc24c4d9c5d22 (patch) | |
tree | f1c84beec9c076413ca15c1d03ea079b571fc071 /PKGBUILD | |
download | aur-562a23d5e45add597c633d563ffdc24c4d9c5d22.tar.gz |
python2 cllist 1.1.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dea5e805f905 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Tim Savannah <kata198@gmail.com> + +pkgname=python2-cllist +_realName="python-cllist" +pkgver=1.1.0 +pkgrel=1 +pkgdesc="C-implemented linked-list module for Python" +arch=('i686' 'x86_64') +license=('MIT') +url="http://github.com/kata198/python-cllist" +makedepends=('python2-setuptools' 'python2') +depends=('python2-setuptools' 'python2') +source=("https://github.com/kata198/python-cllist/archive/${pkgver}.tar.gz") +sha512sums=("922ba867748fe9eeabfb37b159e63c9fb3ba6f67476e80d5c2a2a0e009d795693b6d9d55afe705d637eb4caa79648edd8e54e1ea6bf26748ac4598ca0beb0ee2") + +build() { + cd "$srcdir/${_realName}-$pkgver" + + # Explicitly provide CFLAGS and LDFLAGS here so we don't inherit whatever + # python core was compiled with (e.x. profile-use if python built with PGO) + make CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" build +} + +check() { + cd "$srcdir/${_realName}-$pkgver" + + make CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" 'test' +} + + +package() { + cd "$srcdir/${_realName}-$pkgver" + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build +} + |