aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2019-05-31 10:52:47 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2019-05-31 13:22:57 +0000
commita06cdd6f9dd29d26102b0edffa9b86dca464357f (patch)
treeb48e84392483051ce44724d68d7224d1c2b7d985
parent09babee1f7991131520f3c0254e8bd43f47fb5f0 (diff)
downloadaports-a06cdd6f9dd29d26102b0edffa9b86dca464357f.tar.gz
aports-a06cdd6f9dd29d26102b0edffa9b86dca464357f.tar.bz2
aports-a06cdd6f9dd29d26102b0edffa9b86dca464357f.tar.xz
testing/py3-pycryptodome: drop python2 support
-rw-r--r--testing/py-pycryptodome/APKBUILD54
-rw-r--r--testing/py3-pycryptodome/APKBUILD28
2 files changed, 28 insertions, 54 deletions
diff --git a/testing/py-pycryptodome/APKBUILD b/testing/py-pycryptodome/APKBUILD
deleted file mode 100644
index 7751c3b6d6..0000000000
--- a/testing/py-pycryptodome/APKBUILD
+++ /dev/null
@@ -1,54 +0,0 @@
-# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
-# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
-pkgname=py-pycryptodome
-pkgver=3.8.2
-pkgrel=0
-pkgdesc="Self-contained cryptographic library"
-url="https://www.pycryptodome.org"
-arch="all"
-license="BSD-2-Clause Unlicense"
-depends=""
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
-source="$pkgname-$pkgver.tar.gz::https://github.com/Legrandin/pycryptodome/archive/v$pkgver.tar.gz"
-builddir="$srcdir"/pycryptodome-$pkgver
-
-build() {
- cd "$builddir"
- python2 setup.py --quiet build
- python3 setup.py --quiet build
-}
-
-check() {
- cd "$builddir"
- python2 setup.py test
- python3 setup.py test
-}
-
-package() {
- cd "$builddir"
- mkdir -p "$pkgdir"/usr/bin
-}
-
-_py2() {
- depends="${depends//py-/py2-}"
- _py python2
-}
-
-_py3() {
- depends="${depends//py-/py3-}"
- _py python3
-}
-
-_py() {
- local python="$1"
- local pyver="${1:6:1}"
- pkgdesc="$pkgdesc (for $python)"
- depends="$depends $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py --quiet install --prefix=/usr --root="$subpkgdir"
-}
-
-sha512sums="4be61d7dafd38bfb011f6a585645fc8b6e4951c7173e7cb00c1e863c4a233e2285068d963e4dae55050c7dd198338af1d115dda3e6eece6ffda515af8d1136e2 py-pycryptodome-3.8.2.tar.gz"
diff --git a/testing/py3-pycryptodome/APKBUILD b/testing/py3-pycryptodome/APKBUILD
new file mode 100644
index 0000000000..e4ac07196b
--- /dev/null
+++ b/testing/py3-pycryptodome/APKBUILD
@@ -0,0 +1,28 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
+pkgname=py3-pycryptodome
+pkgver=3.8.2
+pkgrel=0
+pkgdesc="Self-contained cryptographic library"
+url="https://www.pycryptodome.org"
+arch="all"
+license="BSD-2-Clause Unlicense"
+makedepends="python3-dev py-setuptools"
+source="$pkgname-$pkgver.tar.gz::https://github.com/Legrandin/pycryptodome/archive/v$pkgver.tar.gz"
+builddir="$srcdir"/pycryptodome-$pkgver
+replaces=py-pycryptodome
+provides="py-pycryptodome=$pkgver-r$pkgrel"
+
+build() {
+ python3 setup.py --quiet build
+}
+
+check() {
+ python3 setup.py test
+}
+
+package() {
+ python3 setup.py --quiet install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="4be61d7dafd38bfb011f6a585645fc8b6e4951c7173e7cb00c1e863c4a233e2285068d963e4dae55050c7dd198338af1d115dda3e6eece6ffda515af8d1136e2 py3-pycryptodome-3.8.2.tar.gz"