Mail archive
alpine-aports

[alpine-aports] [PATCH 5/6] testing/py-constantly: new aport

From: Drew DeVault <sir_at_cmpwn.com>
Date: Mon, 15 Jan 2018 19:23:27 -0500

---
 testing/py-constantly/APKBUILD | 49 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 testing/py-constantly/APKBUILD
diff --git a/testing/py-constantly/APKBUILD b/testing/py-constantly/APKBUILD
new file mode 100644
index 0000000000..e80fe33f4d
--- /dev/null
+++ b/testing/py-constantly/APKBUILD
_at_@ -0,0 +1,49 @@
+# Maintainer: Drew DeVault <sir_at_cmpwn.com>
+pkgname=py-constantly
+_pkgname=constantly
+pkgver=15.1.0
+pkgrel=0
+pkgdesc="A Python library that provides symbolic constant support."
+url="https://github.com/twisted/constantly"
+arch="noarch"
+license="MIT"
+makedepends="python2-dev python3-dev py-setuptools"
+subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+	cd "$builddir"
+	python2 setup.py build
+	python3 setup.py build
+}
+
+check() {
+	cd "$builddir"
+	python2 setup.py check
+	python3 setup.py check
+}
+
+package() {
+	mkdir -p "$pkgdir"
+}
+
+_py2() {
+	_py python2
+}
+
+_py3() {
+	_py python3
+}
+
+_py() {
+	local python="$1"
+	pkgdesc="$pkgdesc (for $python)"
+	depends="$python"
+	install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+	cd "$builddir"
+	$python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+sha512sums="ccc6f41b0bd552d2bb5346cc9d64cd7b91a59dd30e0cf66b01e82f7e0e079c01c34bc6c66b69c5fee9d2eed35ae5455258d309e66278d708d5f576ddf2e00ac3  constantly-15.1.0.tar.gz"
-- 
2.15.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Mon Jan 15 2018 - 19:23:27 GMT