blob: 80ed2863b2731c162026226094c53490c81e5434 (
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
|
# Maintainer: Davide Depau <davide@depau.eu>
_pkgname='tcconfig'
pkgname="${_pkgname}-git"
pkgver=v0.26.0.r10.gb5b24ab
pkgrel=1
pkgdesc='A simple tc command wrapper'
arch=('any')
url='https://github.com/thombashi/tcconfig'
license=('MIT')
depends=(
'iproute2'
'python-pygments'
'python-dataproperty'
'python-docker'
'python-humanreadable'
'python-loguru'
'python-msgfy'
'python-path'
'python-pyparsing'
'python-pyroute2'
'python-simplesqlite'
'python-subprocrunner'
'python-typepy'
'python-voluptuous'
)
makedepends=('python-setuptools')
optdepends=('docker: Docker container queue discipline support')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=(
"$_pkgname::git+https://github.com/thombashi/tcconfig.git"
)
sha512sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_pkgname"
python setup.py build
}
package() {
cd "$_pkgname"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}
|