~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

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

Details
Message ID
<20170508021927.7274-1-pickfire@riseup.net>
Sender timestamp
1494209967
DKIM signature
missing
Download raw message
Patch: +53 -0
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 <pickfire@riseup.net>
# Maintainer: Ivan Tham <pickfire@riseup.net>
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:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)