aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorDaiki Maekawa <dmaekawa@seqsense.com>2019-04-03 17:49:41 +0900
committerKevin Daudt <kdaudt@alpinelinux.org>2019-04-14 20:08:55 +0000
commit589eaea9246f65dacff579578fab11e920c0b1cb (patch)
tree42501a5576da7aa91241538692339355d7091f1f /testing
parent4562ca44dbe74e994d3884c46a8bf418675e8586 (diff)
downloadaports-589eaea9246f65dacff579578fab11e920c0b1cb.tar.bz2
aports-589eaea9246f65dacff579578fab11e920c0b1cb.tar.xz
create community/py-frozendict
Diffstat (limited to 'testing')
-rw-r--r--testing/py-frozendict/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/py-frozendict/APKBUILD b/testing/py-frozendict/APKBUILD
new file mode 100644
index 0000000000..a2a3e92e44
--- /dev/null
+++ b/testing/py-frozendict/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Daiki Maekawa <daikimaekawa29@gmail.com>
+# Maintainer: Daiki Maekawa <daikimaekawa29@gmail.com>
+pkgname=py-frozendict
+pkgver=1.2
+pkgrel=0
+pkgdesc="immutable dictionary"
+url="https://github.com/slezica/python-frozendict"
+arch="all"
+license="MIT"
+makedepends="python2-dev python3-dev py-setuptools"
+subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+source="https://files.pythonhosted.org/packages/4e/55/a12ded2c426a4d2bee73f88304c9c08ebbdbadb82569ebdd6a0c007cfd08/frozendict-${pkgver}.tar.gz"
+builddir="$srcdir/frozendict-${pkgver}"
+
+build() {
+ cd "$builddir"
+ python2 setup.py build
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ python2 setup.py test
+ python3 setup.py test
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py2() {
+ _py python2
+}
+
+_py3() {
+ _py python3
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc (for $python)"
+ install_if="$pkgname=$pkgver-$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+sha512sums="095cf5f6f8b02bf5666e04200431992bf4b3160aae3464d528bc256b1ab643e29dda78fe94d9e8c983dbfe66cd2459e0559122e17b6b8660c0552adc5318b3da frozendict-1.2.tar.gz"