mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/py-pymaging: improve APKBUILD
- don't depend on subpkg explicitly - "replaces" not needed
This commit is contained in:
parent
f27e562a0d
commit
811ea00a61
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user