aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-asn1
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-10-01 19:30:51 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-10-01 20:09:48 +0200
commitf9edb4860e266b202a026c49f4e0b68dd7cc9a3c (patch)
tree297998b447b01c849bfafd947d96a4348a3762c2 /main/py-asn1
parent66c9137454d949c2762dbbda19d9bbe5fa41ba91 (diff)
downloadaports-f9edb4860e266b202a026c49f4e0b68dd7cc9a3c.tar.bz2
aports-f9edb4860e266b202a026c49f4e0b68dd7cc9a3c.tar.xz
main/py-asn1: improve abuild and fix to not silently fail
Diffstat (limited to 'main/py-asn1')
-rw-r--r--main/py-asn1/APKBUILD21
1 files changed, 10 insertions, 11 deletions
diff --git a/main/py-asn1/APKBUILD b/main/py-asn1/APKBUILD
index 93e5614c2e..c023c3ecf2 100644
--- a/main/py-asn1/APKBUILD
+++ b/main/py-asn1/APKBUILD
@@ -1,19 +1,18 @@
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-asn1
+_pkgname=pyasn1
pkgver=0.1.9
-pkgrel=1
+pkgrel=2
pkgdesc="A python ASN1 library"
url="http://pyasn1.sourceforge.net/"
arch="noarch"
license="BSD"
depends=""
makedepends="python2-dev py-setuptools python3-dev"
-install=""
-subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
-source="http://sourceforge.net/projects/pyasn1/files/pyasn1/$pkgver/pyasn1-$pkgver.tar.gz"
-
-builddir="$srcdir"/pyasn1-$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,24 +25,24 @@ package() {
}
_py() {
- local python=$1
- pkgdesc="$pkgdesc - $python"
+ local python="$1"
+ pkgdesc="$pkgdesc (for $python)"
+ 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() {
_py python3
}
-
-
md5sums="f00a02a631d4016818659d1cc38d229a pyasn1-0.1.9.tar.gz"
sha256sums="853cacd96d1f701ddd67aa03ecc05f51890135b7262e922710112f12a2ed2a7f pyasn1-0.1.9.tar.gz"
sha512sums="c72bdba84c4cc860a1790d752861dc9de30dabb61e5146a551597b4a97e64797dbd6e575e61cb9a8b23ffc58bced143b0ed55a7c98d0a85834ccd60b17856df5 pyasn1-0.1.9.tar.gz"