aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-enum34
diff options
context:
space:
mode:
Diffstat (limited to 'main/py-enum34')
-rw-r--r--main/py-enum34/APKBUILD21
1 files changed, 11 insertions, 10 deletions
diff --git a/main/py-enum34/APKBUILD b/main/py-enum34/APKBUILD
index 8b6d004ea3..317687b875 100644
--- a/main/py-enum34/APKBUILD
+++ b/main/py-enum34/APKBUILD
@@ -1,19 +1,18 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-enum34
+_pkgname=enum34
pkgver=1.1.6
-pkgrel=0
+pkgrel=1
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"
-install=""
-subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
-source="https://files.pythonhosted.org/packages/source/e/enum34/enum34-$pkgver.tar.gz"
-
-builddir="$srcdir"/enum34-$pkgver
+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"
build() {
cd "$builddir"
@@ -26,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() {