aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-olefile
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2017-08-02 06:31:54 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-08-02 06:31:54 +0000
commit7c1e40e7bd5515142e3204bd8e021366f14fa0f6 (patch)
tree170d5e14cf198c0b15ddf8e33e9c46ab2aa473c1 /main/py-olefile
parent4a9319a4ebc746898da65138230194ad5c3ff871 (diff)
downloadaports-7c1e40e7bd5515142e3204bd8e021366f14fa0f6.tar.bz2
aports-7c1e40e7bd5515142e3204bd8e021366f14fa0f6.tar.xz
community/py-olefile: move to main
Diffstat (limited to 'main/py-olefile')
-rw-r--r--main/py-olefile/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/main/py-olefile/APKBUILD b/main/py-olefile/APKBUILD
new file mode 100644
index 0000000000..a4f1a846b9
--- /dev/null
+++ b/main/py-olefile/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=py-olefile
+pkgver=0.43
+pkgrel=2
+pkgdesc="A Python module to read/write MS OLE2 files"
+url="http://www.decalage.info/olefile"
+arch="noarch"
+license="custom"
+depends=""
+makedepends="python2-dev py-setuptools python3-dev"
+install=""
+subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
+source="https://bitbucket.org/decalage/olefileio_pl/downloads/${pkgname/py-/}-$pkgver.tar.gz"
+
+builddir="$srcdir"/${pkgname/py-/}-$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
+ replaces="$pkgname"
+}
+
+_py3() {
+ _py python3
+}
+
+
+md5sums="f570df81ebfab51aaa538af39fef6fd3 olefile-0.43.tar.gz"
+sha256sums="57102bf3f19c5fa099c0c7128190fe4bb28cd2760aa08f4b5b7dccf28718b876 olefile-0.43.tar.gz"
+sha512sums="5a2fbe69bbe13f2633b4d6c8861531f4ac0b41379fea889a6e74a1f0f78960e2b9db10516fae5f3d2a59f2dac6a6befcd78c11a9fc45212009a3097cdc5f61ea olefile-0.43.tar.gz"