diff options
Diffstat (limited to 'community')
-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() { |