blob: ea877dd1003767708342d557a48b4ef8014171eb (
plain)
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
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-rarfile
_pkgname=rarfile
pkgver=3.1
pkgrel=0
pkgdesc="RAR archive reader"
options="!check" # 3 tests fail
url="https://github.com/markokr/rarfile"
arch="noarch"
license="ISC"
makedepends="py3-setuptools"
checkdepends="py3-nose unrar"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-rarfile" # Backwards compatibility
provides="py-rarfile=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
check() {
nosetests-3.7
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="eb910b0adfd1f28497163aa7994ab268d7780707e09931cb01014ffa51d985410b0bc17e5fb9ca133992b28115a0b5f443d01215624145d280f29e7065abb9d9 rarfile-3.1.tar.gz"
|