aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-09-09 20:51:24 +0300
committerprspkt <prspkt@protonmail.com>2019-09-09 23:58:23 +0300
commit0685aaea7c9350adaa646fe81f8a3e0483c32107 (patch)
treeac18d9a810c54ad270bf4b82641694c12dee38b3 /testing
parent8b9b185248d6d61b767e1d091a547df62adf1ab6 (diff)
downloadaports-0685aaea7c9350adaa646fe81f8a3e0483c32107.tar.bz2
aports-0685aaea7c9350adaa646fe81f8a3e0483c32107.tar.xz
testing/py-pyparted: drop python2, clarify license
* Update url and source to new upstream. Signed-off-by: prspkt <prspkt@protonmail.com>
Diffstat (limited to 'testing')
-rw-r--r--testing/py-pyparted/APKBUILD45
-rw-r--r--testing/py3-pyparted/APKBUILD27
2 files changed, 27 insertions, 45 deletions
diff --git a/testing/py-pyparted/APKBUILD b/testing/py-pyparted/APKBUILD
deleted file mode 100644
index 4765d1f7ab..0000000000
--- a/testing/py-pyparted/APKBUILD
+++ /dev/null
@@ -1,45 +0,0 @@
-# Contributor: Francesco Colista <fcolista@alpinelinux.org>
-# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
-pkgname=py-pyparted
-_pkgname=pyparted
-pkgver=3.11.2
-pkgrel=1
-pkgdesc="Python bindings for GNU parted (libparted)"
-url="https://github.com/rhinstaller/pyparted"
-arch="all"
-license="GPL-2.0"
-makedepends="python2-dev python3-dev py-setuptools parted-dev"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
-source="$pkgname-$pkgver.tar.gz::https://github.com/rhinstaller/${pkgname/py-/}/archive/v$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"
-}
-
-_py2() {
- _py python2
-}
-
-_py3() {
- _py python3
-}
-
-_py() {
- local python="$1"
- pkgdesc="$pkgdesc (for $python)"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
-}
-
-
-
-sha512sums="de6e7387e3eb9c9cb11e01f475d2749d2ce22ec2f11386df20cafcf83f7e431828f2db936f29c717e42694ff390a592598893633156a21aa7c8d5700a3c9ece9 py-pyparted-3.11.2.tar.gz"
diff --git a/testing/py3-pyparted/APKBUILD b/testing/py3-pyparted/APKBUILD
new file mode 100644
index 0000000000..ccee068593
--- /dev/null
+++ b/testing/py3-pyparted/APKBUILD
@@ -0,0 +1,27 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=py3-pyparted
+_pkgname=pyparted
+pkgver=3.11.2
+pkgrel=2
+pkgdesc="Python bindings for GNU parted (libparted)"
+url="https://github.com/dcantrell/pyparted"
+arch="all"
+license="GPL-2.0-or-later"
+depends="python3"
+makedepends="python3-dev py3-setuptools parted-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/dcantrell/pyparted/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+replaces=py-pyparted # Backwards compatibility
+provides=py-pyparted=$pkgver-r$pkgrel # Backwards compatibility
+
+build() {
+ python3 setup.py build
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="de6e7387e3eb9c9cb11e01f475d2749d2ce22ec2f11386df20cafcf83f7e431828f2db936f29c717e42694ff390a592598893633156a21aa7c8d5700a3c9ece9 py3-pyparted-3.11.2.tar.gz"