aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-rarfile/APKBUILD
blob: 414c0ae8cc0c4e0630227ab31fc5b4e449ab3fdd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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="python2-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"