summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 59e6303c1230efd16847bccee233662a72549194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pkgname='python-tcconfig'
_module='tcconfig'
pkgver='0.17.0'
pkgrel=1
pkgdesc="A Simple tc command wrapper tool. Easy to set up traffic control of network bandwidth/latency/packet loss/packet-corruption to a network interface."
url="https://github.com/thombashi/tcconfig"
depends=('python' 'iproute2' 'python-dataproperty>=0.29.1' 'python-simplesqlite>=0.19.0' 'python-subprocrunner>=0.10.0' 'python-typepy>=0.0.20' 'python-voluptuous' 'python-ipaddress' 'python-logbook' 'python-pyparsing>=2.2.0' 'python-six')
makedepends=('python-setuptools')
license=('MIT')
arch=('any')
source=("https://github.com/thombashi/tcconfig/archive/v${pkgver}.tar.gz")
md5sums=('2da1b88c7fba61685893f8909ccfd18e')

build() {
    cd "${srcdir}/${_module}-${pkgver}"
    python setup.py build
}

package() {
    cd "${srcdir}/${_module}-${pkgver}"
    install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python-tcconfig/LICENSE"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}