summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6417dba024ea4ddb690e479180f9cf341f35930a (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
# Maintainer: Giacomo Vercesi <mrjackv@hotmail.it>
# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
# Contributor: Florian Wittmann

_pkgname='tcconfig'
pkgname="python-${_pkgname}"
pkgver=0.27.1
pkgrel=1
pkgdesc='tc command wrapper'
arch=('any')
url='https://github.com/thombashi/tcconfig'
_url_pypi='https://pypi.org/project/tcconfig'
license=('MIT')
depends=('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')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('fbe63201df10b718781001dd0428edc81f0c9319de7719e57d184495f66e82f8')

build() {
  cd "${_pkgname}-${pkgver}"
  python setup.py build
}

package() {
  cd "${_pkgname}-${pkgver}"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -Dvm644 'README.rst' -t "${pkgdir}/usr/share/doc/${pkgname}"
  install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

# vim: ts=2 sw=2 et: