blob: f2bfbda03efe6063911c3559e83a0ecafe157c72 (
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.0
pkgrel=3
pkgdesc="A 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="b0b816bf09fe455e4d8d35b447c30e7810468a6927555164a1b513d4161f3fd4e77a37439620bd935c3a12e46b1e5eda3e35d7d281899d2f9fd26b6e989aa6e4 rarfile-3.0.tar.gz"
|