diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-05-03 06:52:38 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-05-03 06:52:45 +0000 |
commit | a12e342d2a8ab257635ef89f47c75e0315e979c1 (patch) | |
tree | 053006acf9b77511f1ac05d1ade83c12cab63091 /community/py-zipstream | |
parent | d9a94f5c7257356043881aeee156bab52c77c756 (diff) | |
download | aports-a12e342d2a8ab257635ef89f47c75e0315e979c1.tar.bz2 aports-a12e342d2a8ab257635ef89f47c75e0315e979c1.tar.xz |
community/py-zipstream: modernize APKBUILD, added check()
Diffstat (limited to 'community/py-zipstream')
-rw-r--r-- | community/py-zipstream/APKBUILD | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/community/py-zipstream/APKBUILD b/community/py-zipstream/APKBUILD index 9657ed63f0..43001ad234 100644 --- a/community/py-zipstream/APKBUILD +++ b/community/py-zipstream/APKBUILD @@ -2,22 +2,28 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=py-zipstream _pkgname=python-zipstream -pkgver="1.1.4" -pkgrel=0 +pkgver=1.1.4 +pkgrel=1 pkgdesc="Like Python's ZipFile module, except it works as a generator that provides the file in many small chunks." url="https://github.com/allanlei/python-zipstream" arch="noarch" license="GPL3" -depends="" makedepends="python2-dev python3-dev py-setuptools" -install="" subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" source="$pkgname-$pkgver.tar.gz::https://github.com/allanlei/$_pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" + +check() { + cd "$builddir" + python2 setup.py check + python3 setup.py check +} + + build() { cd "$builddir" - python2 setup.py build || return 1 - python3 setup.py build || return 1 + python2 setup.py build + python3 setup.py build } package() { |