aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-07-25 20:57:07 +0300
committerprspkt <prspkt@protonmail.com>2019-07-25 21:06:10 +0300
commit3afc5514e1ab664950f98fe8a1946d52b4f3c6b1 (patch)
treec28c45ab9e402154b0edca438a4b9f0b34f732e6 /community
parent99c2a1017dc5ba18648d64bc08b59a9042e6f5d0 (diff)
downloadaports-3afc5514e1ab664950f98fe8a1946d52b4f3c6b1.tar.bz2
aports-3afc5514e1ab664950f98fe8a1946d52b4f3c6b1.tar.xz
community/py-rfc3339: drop python2
Signed-off-by: prspkt <prspkt@protonmail.com>
Diffstat (limited to 'community')
-rw-r--r--community/py3-pyrfc3339/APKBUILD (renamed from community/py-rfc3339/APKBUILD)35
1 files changed, 7 insertions, 28 deletions
diff --git a/community/py-rfc3339/APKBUILD b/community/py3-pyrfc3339/APKBUILD
index 01ccd1b06e..b616217a1a 100644
--- a/community/py-rfc3339/APKBUILD
+++ b/community/py3-pyrfc3339/APKBUILD
@@ -1,6 +1,6 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
-pkgname=py-rfc3339
+pkgname=py3-pyrfc3339
_pkgname=pyRFC3339
pkgver=1.1
pkgrel=1
@@ -8,41 +8,20 @@ pkgdesc="Generate and parse RFC 3339 timestamps"
url="https://pypi.python.org/pypi/pyRFC3339"
arch="noarch"
license="MIT"
-depends="py-tz"
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+depends="py3-tz"
+makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+replaces=py-rfc3339 # Backwards compatibility
+provides=py-rfc3339=$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="958b7761fab590aa42bb57a955c5d834441f717796a452b60df21663099dcf2fc046afe60f8157fd0f1edfd95c5e9c9c5349ab10ca4078d210fc63d848496a2f pyRFC3339-1.1.tar.gz"