diff options
author | Davide Depau | 2020-08-27 20:20:41 +0200 |
---|---|---|
committer | Davide Depau | 2020-08-27 20:20:41 +0200 |
commit | 5bdf263a15c659892ad141f42f99401cc1bfe02c (patch) | |
tree | 1749f0bfee4c4b686c855f8af5655c8dc9bbf798 /PKGBUILD | |
download | aur-tcconfig-git.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..80ed2863b273 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} + |