diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-02-16 08:54:15 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-02-16 09:15:15 +0000 |
commit | 6685e93f4ec1223b59f0e0dae42d9f275f365e82 (patch) | |
tree | d4bf94c81c694dd22e84862aa68c9cdf42b3da72 /main/py-enum34 | |
parent | bec0e79ed2237c7240744b9102994da583018267 (diff) | |
download | aports-6685e93f4ec1223b59f0e0dae42d9f275f365e82.tar.bz2 aports-6685e93f4ec1223b59f0e0dae42d9f275f365e82.tar.xz |
main/py-enum34: removed py3 subpackage, since enum34 is builtin
Diffstat (limited to 'main/py-enum34')
-rw-r--r-- | main/py-enum34/APKBUILD | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/main/py-enum34/APKBUILD b/main/py-enum34/APKBUILD index 317687b875..b5dcc8a55f 100644 --- a/main/py-enum34/APKBUILD +++ b/main/py-enum34/APKBUILD @@ -3,44 +3,26 @@ pkgname=py-enum34 _pkgname=enum34 pkgver=1.1.6 -pkgrel=1 +pkgrel=2 pkgdesc="Python 3.4 Enum backported" url="http://pypi.python.org/pypi/enum34" arch="noarch" license="BSD" depends="" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" +makedepends="python2-dev py-setuptools" +subpackages="" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" python2 setup.py build || return 1 - python3 setup.py build || return 1 } package() { - mkdir -p "$pkgdir" -} - -_py() { - 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() { - replaces="$pkgname" - _py python2 -} - -_py3() { - _py python3 + mkdir -p "$pkgdir" + python2 setup.py install --prefix=/usr --root="$pkgdir" } md5sums="5f13a0841a61f7fc295c514490d120d0 enum34-1.1.6.tar.gz" |