diff options
Diffstat (limited to 'community/py-lz4/APKBUILD')
-rw-r--r-- | community/py-lz4/APKBUILD | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/community/py-lz4/APKBUILD b/community/py-lz4/APKBUILD index 89550106fb..c319784505 100644 --- a/community/py-lz4/APKBUILD +++ b/community/py-lz4/APKBUILD @@ -3,7 +3,7 @@ pkgname=py-lz4 pkgver=0.17.0 _pkgname=${pkgname#py-} -pkgrel=0 +pkgrel=1 pkgdesc="LZ4 Bindings for Python" url="https://pypi.python.org/pypi/lz4" arch="all" @@ -16,9 +16,14 @@ if [ "$CARCH" = "s390x" ]; then options="!check" fi subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2 $pkgname-tests:_tests:noarch" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz + system-lz4.patch" builddir="$srcdir/$_pkgname-$pkgver" +prepare() { + default_prepare + rm lz4libs/lz4*.[ch] +} build() { cd "$builddir" python2 setup.py build @@ -27,7 +32,7 @@ build() { check() { cd "$builddir" - python2 setup.py test + python3 setup.py test } package() { @@ -60,4 +65,5 @@ _tests() { mv "$builddir"/tests "$subpkgdir"/usr/share/$pkgname } -sha512sums="29af6839733cd57ee607e7e608a1aa2ab8c99aeb494b415af35ecad4efe26b1809a56a35dce045f1425043ebc9313fd99dcc81a1ac6d572b52d6debd14451207 lz4-0.17.0.tar.gz" +sha512sums="29af6839733cd57ee607e7e608a1aa2ab8c99aeb494b415af35ecad4efe26b1809a56a35dce045f1425043ebc9313fd99dcc81a1ac6d572b52d6debd14451207 lz4-0.17.0.tar.gz +bfd746ae77169f4b963a386816f8480f817587535415144f3a716a00ad22f18db3dfde5b2bbe69892d2298e19453a88531eec90b72fca13961f404555de41b8b system-lz4.patch" |