aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2015-03-25 06:57:36 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-03-29 13:05:38 +0000
commit864906e2d2d8edadcdf0fccf016cd4e5eb38bf89 (patch)
treead0b36ff454958431295a49a657dd6b3d000dcd0 /testing
parent27bf5ae3a060cae048b956f2ef99a0c06b8aebf0 (diff)
downloadaports-864906e2d2d8edadcdf0fccf016cd4e5eb38bf89.tar.bz2
aports-864906e2d2d8edadcdf0fccf016cd4e5eb38bf89.tar.xz
testing/py-rarfile: new aport
A RAR archive reader for Python https://pypi.python.org/pypi/rarfile
Diffstat (limited to 'testing')
-rw-r--r--testing/py-rarfile/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-rarfile/APKBUILD b/testing/py-rarfile/APKBUILD
new file mode 100644
index 0000000000..b5592c9c5b
--- /dev/null
+++ b/testing/py-rarfile/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py-rarfile
+_pkgname=rarfile
+pkgver=2.7
+pkgrel=0
+pkgdesc="A RAR archive reader for Python"
+url="https://github.com/markokr/rarfile"
+arch="noarch"
+license="ISC"
+depends="python"
+depends_dev=""
+makedepends="python-dev py-setuptools"
+install=""
+subpackages=""
+source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+}
+
+md5sums="d143205f22078830451e0066c123580d rarfile-2.7.tar.gz"
+sha256sums="47148088ddb6c020774f4c38927fec9625ca33651bdc551bdaeafc78690b1635 rarfile-2.7.tar.gz"
+sha512sums="39827329644a89ac9721a52bb591be9a8921e919e1c0f2434df3d467d52b49aac4b18e27fdd4e40b5dd21b0df1ced495d42afe69331392ffadd9ac1fc857db56 rarfile-2.7.tar.gz"