diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2016-11-09 03:34:25 +0000 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-09 20:56:14 +0100 |
commit | 97caeb21e4794a9d7304949084e64b794c30a80b (patch) | |
tree | f209b8b911cfb9301ceda55ab04959da2a3ca0c1 /community/py-decorator | |
parent | e0641ce69f1340f21b3551b13db62e1b5f4f0be5 (diff) | |
download | aports-97caeb21e4794a9d7304949084e64b794c30a80b.tar.bz2 aports-97caeb21e4794a9d7304949084e64b794c30a80b.tar.xz |
community/py-decorator: fix and clean-up abuild
Diffstat (limited to 'community/py-decorator')
-rw-r--r-- | community/py-decorator/APKBUILD | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/community/py-decorator/APKBUILD b/community/py-decorator/APKBUILD index d04d0d2a85..e15c4c512b 100644 --- a/community/py-decorator/APKBUILD +++ b/community/py-decorator/APKBUILD @@ -3,24 +3,21 @@ pkgname=py-decorator _pkgname=decorator pkgver=4.0.10 -pkgrel=1 +pkgrel=2 pkgdesc="Python Decorator module" url="http://pypi.python.org/pypi/decorator" arch="noarch" license="BSD" depends="" -depends_dev="" makedepends="python2-dev py-setuptools python3-dev" -install="" -subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" +subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" - -builddir="$srcdir"/$_pkgname-$pkgver +builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" python2 setup.py build || return 1 - python3 setup.py build || return 1 + python3 setup.py build || return 1 } package() { @@ -28,16 +25,18 @@ package() { } _py() { - local python=$1 - pkgdesc="$pkgdesc - $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { - _py python2 replaces="$pkgname" + _py python2 } _py3() { |