blob: c715f3afe7b518a1e0cf309bab3341ef75c68570 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: George Tsiamasiotis <gtsiam@windowslive.com>
pkgname=tractor
pkgver=4.5.1
pkgrel=2
pkgdesc='Setup an onion routing proxy'
arch=(any)
url='https://framagit.org/tractor/tractor/'
license=('GPL-3.0-or-later')
depends=(
python
python-gobject
python-fire
python-pysocks
python-stem
tor
dconf
)
makedepends=(
python-build
python-setuptools
python-installer
python-wheel
)
checkdepends=(
python-nose
)
optdepends=(
'carburetor: Graphical settings app using GTK'
)
source=(
"$pkgname-$pkgver.tar.gz::https://framagit.org/tractor/tractor/-/archive/$pkgver/tractor-$pkgver.tar.gz")
sha256sums=('0f27211ec9da2842134d28a43139bff77bc9d7e8b1cba33a6133c92acf556fda')
build() {
cd "$pkgname-$pkgver"
python -m build --wheel --no-isolation
}
check() {
cd "$pkgname-$pkgver"
nosetests
}
package() {
cd "$pkgname-$pkgver"
# Install python package
python -m installer --destdir="$pkgdir" dist/*.whl
# Install gschema
install -Dm0644 -t "$pkgdir/usr/share/glib-2.0/schemas" src/tractor/tractor.gschema.xml
# Install man page
install -Dm0644 -t "$pkgdir/usr/share/man/man1" data/tractor.1
# Install bash completions
install -Dm0644 -t "$pkgdir/usr/share/bash-completion/completions/tractor" data/completion/bash/tractor
}
|