diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-08-27 01:20:43 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-08-27 02:07:38 -0300 |
commit | af86bbfd8ab51c27be6325a7cc3031e64a0c9dcc (patch) | |
tree | 2a5fa2c067b1f282a1d03164421f857c6cc28848 /community | |
parent | 8e9322beab8dba3881aab32d9c0fde3641682e9f (diff) | |
download | aports-af86bbfd8ab51c27be6325a7cc3031e64a0c9dcc.tar.bz2 aports-af86bbfd8ab51c27be6325a7cc3031e64a0c9dcc.tar.xz |
community/py3-lz4: upgrade to 2.1.10
Diffstat (limited to 'community')
-rw-r--r-- | community/py3-lz4/APKBUILD | 38 |
1 files changed, 10 insertions, 28 deletions
diff --git a/community/py3-lz4/APKBUILD b/community/py3-lz4/APKBUILD index 85e8bd7f75..252ae02d48 100644 --- a/community/py3-lz4/APKBUILD +++ b/community/py3-lz4/APKBUILD @@ -1,14 +1,14 @@ # Contributor: Stuart Cardall <developer@it-offshore.co.uk> # Maintainer: Stuart Cardall <developer@it-offshore.co.uk> -pkgname=py-lz4 -pkgver=2.1.9 -_pkgname=${pkgname#py-} +pkgname=py3-lz4 +pkgver=2.1.10 +_pkgname=${pkgname#py3-} pkgrel=0 pkgdesc="LZ4 Bindings for Python" url="https://pypi.python.org/pypi/lz4" arch="all" license="BSD-3-Clause" -makedepends="python2-dev python3-dev py-setuptools py3-setuptools lz4-dev linux-headers" +makedepends="python3-dev py3-setuptools lz4-dev linux-headers" checkdepends="py3-pytest py3-psutil py3-pytest-cov py3-coverage" # FIXME: check fails on s390x @@ -16,19 +16,21 @@ if [ "$CARCH" = "s390x" ]; then options="!check" fi -subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2 $pkgname-tests:_tests:noarch" +subpackages="$pkgname-tests:_tests:noarch" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz system-libs.patch " builddir="$srcdir/$_pkgname-$pkgver" +replaces="py-lz4" # Backwards compatibility +provides="py-lz4=$pkgver-r$pkgrel" # Backwards compatibility + prepare() { default_prepare rm lz4libs/lz4*.[ch] } build() { - python2 setup.py build python3 setup.py build } @@ -37,27 +39,7 @@ check() { } package() { - mkdir -p "$pkgdir" -} - -_py() { - local python=$1 - pkgdesc="$pkgdesc ${python#python}" - depends="$python $depends" - install_if="$pkgname=$pkgver-r$pkgrel $python" - - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" -} - -_py2() { - replaces="$pkgname" - depends="py-future" - _py python2 -} - -_py3() { - _py python3 + python3 setup.py install --prefix=/usr --root="$pkgdir" } _tests() { @@ -67,5 +49,5 @@ _tests() { mv "$builddir"/tests "$subpkgdir"/usr/share/$pkgname } -sha512sums="e700e46ee873743f1e195ed8b5c6405a2535abf9f3d378e7d082e92e95ab9e00f5b93bfbe1634d504d1f293dd449ed280d6b6dc5c595d8fab87eefd6781ee99f lz4-2.1.9.tar.gz +sha512sums="2bee74fba190329f99bef231bc7460f213077c1ae8ced37ff507fef3f01a4e14748f525b2d478b179c4f5d00497c286c931458b2349273dfc3446e6e638d4228 lz4-2.1.10.tar.gz 32928c49a6231106fbd7c73a1931c158a9d943132a22217e5f80ea0c20cc4a7259d9aca7dc5f7961b65e7e1e64f5740fd963f67d5078ebd9dec022fcbafa6181 system-libs.patch" |