# Contributor: Fabian Affolter # Maintainer: Fabian Affolter 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="https://files.pythonhosted.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"