aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-pyzor
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-09-06 10:41:38 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-09-06 10:41:38 +0000
commita28f10c69837d936f85715329759e6be12343dd4 (patch)
tree2a06b6bd82513bdc7fee714e47abac1c56c0604d /testing/py-pyzor
parent0d14cce165fca4d65a2e5b48d4c479032300cfcd (diff)
downloadaports-a28f10c69837d936f85715329759e6be12343dd4.tar.bz2
aports-a28f10c69837d936f85715329759e6be12343dd4.tar.xz
testing/py-pyzor: new aport. Fixes #6110
Diffstat (limited to 'testing/py-pyzor')
-rw-r--r--testing/py-pyzor/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/py-pyzor/APKBUILD b/testing/py-pyzor/APKBUILD
new file mode 100644
index 0000000000..07048db349
--- /dev/null
+++ b/testing/py-pyzor/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=py-pyzor
+_pkgname=pyzor
+pkgver=1.0.0
+pkgrel=0
+pkgdesc="Python implementation of a spam-blocking networked system that use spam signatures to identify them."
+url="https://pypi.python.org/pypi/pyzor/"
+arch="noarch"
+license="GPL2"
+depends=""
+makedepends="python2-dev py-setuptools python3-dev"
+subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
+source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$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"
+}
+
+_py() {
+ local python=$1
+ pkgdesc="$pkgdesc - $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+_py2() {
+ _py python2
+}
+
+_py3() {
+ _py python3
+}
+md5sums="e77b1cd0afd3884e6f2aa585cb423b46 pyzor-1.0.0.tar.gz"
+sha256sums="10ea114bdee2eee5edd6afe8eeddaaf605620445977ae019a3e9b1cbb6bc3b27 pyzor-1.0.0.tar.gz"
+sha512sums="5ce22d23dac02f3b14b7e87f1049cdcd06b8b02a0214898bf9946d966e3d5e1e5788d82cdf7883641d0291dcf949483a926989482cdd344460d9f6a8e7182cc5 pyzor-1.0.0.tar.gz"