Commit 6685e93f authored by Francesco Colista's avatar Francesco Colista
Browse files

main/py-enum34: removed py3 subpackage, since enum34 is builtin

parent bec0e79e
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment