blob: 8f176ba8131ad2b50cddeddde9dffd8826e7b39d (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Wilson Birney <wpbirney@gmail.com>
pkgname=pirate-get-git
pkgver=0.4.0.r5.g608cb0a
pkgrel=1
pkgdesc="Command line interface for The Pirate Bay"
arch=('any')
url="https://github.com/vikstrous/pirate-get"
license=('AGPL3')
depends=(
'python-pyperclip'
'python-colorama'
'python-veryprettytable'
'python-termcolor')
makedepends=('git' 'python-setuptools')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url")
md5sums=('SKIP')
pkgver() {
git -C "$pkgname" describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
}
prepare() {
cd "$pkgname"
sed -i "/packages=/c\packages=['pirate']," setup.py
}
build() {
cd "$pkgname"
python setup.py build
}
check() {
cd "$pkgname"
python setup.py test
}
package() {
cd "$pkgname"
PYTHONHASHSEED=0 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
|