Subject: [alpine-aports] [PATCH] testing/py-xlrd: new aport

From: Ivan Tham <[email-masked]>
Date: Mon, 8 May 2017 10:19:27 +0800

http://www.python-excel.org/
Library to extract data from Microsoft Excel (tm) spreadsheet
---
 testing/py-xlrd/APKBUILD | 53 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 testing/py-xlrd/APKBUILD

diff --git a/testing/py-xlrd/APKBUILD b/testing/py-xlrd/APKBUILD
new file mode 100644
index 0000000000..31cba7c0ab
--- /dev/null
+++ b/testing/py-xlrd/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: Ivan Tham <[email-masked]>
+# Maintainer: Ivan Tham <[email-masked]>
+pkgname=py-xlrd
+_pkgname=xlrd
+pkgver=1.0.0
+pkgrel=0
+pkgdesc="Library to extract data from Microsoft Excel (tm) spreadsheet"
+url="http://www.python-excel.org/"
+arch="noarch"
+license="BSD"
+depends=""
+makedepends="python2-dev python3-dev py-setuptools"
+subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_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"
+}
+
+_py() {
+        local python="$1"
+        pkgdesc="$pkgdesc (for $python)"
+        depends="$depends $python"
+        install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+        cd "$builddir"
+        $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+_py2() {
+        replaces="$pkgname"
+        _py python2
+}
+
+_py3() {
+        _py python3
+}
+
+
+sha512sums="a9ab8f18d09827f68584bdaa3cc6651302c6d420afb3cd588d21d5f3e7fa1b4c9e5bb31661111b3bd14ed17d69f563dc515859e2aacef63aefdca3b6d98d274e  xlrd-1.0.0.tar.gz"
-- 
2.12.2

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---