aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-purl/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-15 13:01:55 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-09-18 10:39:47 +0000
commit1d8811ff248141557c28bd00df977d1a3820ba90 (patch)
tree8bb6fc9894aa55d3c328d537368fa9a7f2a04d9c /main/py3-purl/APKBUILD
parentfd8d4e688d73ce9ea5bba1cc21131c666c49f74c (diff)
downloadaports-1d8811ff248141557c28bd00df977d1a3820ba90.tar.gz
aports-1d8811ff248141557c28bd00df977d1a3820ba90.tar.bz2
aports-1d8811ff248141557c28bd00df977d1a3820ba90.tar.xz
main/py3-purl: drop py2
Diffstat (limited to 'main/py3-purl/APKBUILD')
-rw-r--r--main/py3-purl/APKBUILD38
1 files changed, 10 insertions, 28 deletions
diff --git a/main/py3-purl/APKBUILD b/main/py3-purl/APKBUILD
index a6e3259bc7..8ed54c7c62 100644
--- a/main/py3-purl/APKBUILD
+++ b/main/py3-purl/APKBUILD
@@ -1,50 +1,32 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-purl
+pkgname=py3-purl
_pkgname=purl
pkgver=1.5
-pkgrel=1
-pkgdesc="An immutable Python URL class for easy URL-building and manipulation"
+pkgrel=2
+pkgdesc="An immutable Python3 URL class for easy URL-building and manipulation"
url="https://github.com/codeinthehole/purl"
arch="noarch"
license="MIT"
-depends="py-six"
+depends="py3-six"
# Tests are not included in the tarball
options="!check"
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+depends="python3"
+makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+replaces="py-purl" # Backwards compatibility
+provides="py-purl=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
cd "$builddir"
- python2 setup.py build
python3 setup.py build
}
package() {
- mkdir -p "$pkgdir"
-}
-
-_py2() {
- replaces="$pkgname"
- depends="${depends//py-/py2-}"
- _py python2
-}
-
-_py3() {
- depends="${depends//py-/py3-}"
- _py python3
-}
-
-_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"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="e7ef3dbe51117c2807a5cd472967d90c9f16fc1090f2edcaf3c4fe0bbc95b8ef8d612d5ca98401caf5a94c5b0335949ac0ac490bc694e571ff516b7bf53fae32 purl-1.5.tar.gz"