aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-pymaging/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-07-19 09:52:45 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-07-19 09:58:06 +0000
commit811ea00a61599f2bd7d56e42283420ad20b0f894 (patch)
tree806ffc9a98de876c8a726bfae89368147893a450 /testing/py-pymaging/APKBUILD
parentf27e562a0daee7962e44505fde77418394d397e6 (diff)
downloadaports-811ea00a61599f2bd7d56e42283420ad20b0f894.tar.gz
aports-811ea00a61599f2bd7d56e42283420ad20b0f894.tar.bz2
aports-811ea00a61599f2bd7d56e42283420ad20b0f894.tar.xz
testing/py-pymaging: improve APKBUILD
- don't depend on subpkg explicitly - "replaces" not needed
Diffstat (limited to 'testing/py-pymaging/APKBUILD')
-rw-r--r--testing/py-pymaging/APKBUILD8
1 files changed, 3 insertions, 5 deletions
diff --git a/testing/py-pymaging/APKBUILD b/testing/py-pymaging/APKBUILD
index 5136361f4d..d25dc9a7ff 100644
--- a/testing/py-pymaging/APKBUILD
+++ b/testing/py-pymaging/APKBUILD
@@ -3,12 +3,12 @@ pkgname=py-pymaging
_pkgname=pymaging
_commit=596a08fce5664e58d6e8c96847393fbe987783f2
pkgver=0.0.20130908
-pkgrel=0
+pkgrel=1
pkgdesc="Pure Python imaging library"
url="https://github.com/ojii/$_pkgname/"
arch="noarch"
license="BSD-3-Clause MIT custom"
-depends="py2-${pkgname#py-} py3-${pkgname#py-}"
+depends=
makedepends="python2-dev python3-dev py-setuptools"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="$pkgname-$pkgver.tar.gz::https://github.com/ojii/$_pkgname/archive/$_commit.tar.gz"
@@ -25,20 +25,18 @@ package() {
}
_py2() {
- depends="python2"
_py python2
rm -rf "$subpkgdir/usr/bin"
}
_py3() {
- depends="python3"
- replaces="$pkgname"
_py python3
}
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
+ depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"