diff options
Diffstat (limited to 'testing/py-rarfile')
-rw-r--r-- | testing/py-rarfile/APKBUILD | 41 |
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" |