summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 53caaa95460189260d61540cff005a9f8d0c83dc (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
# Maintainer: Ben Wolsieffer <benwolsieffer@gmail.com>
_py_pkgname=port-for
_github_url=https://github.com/kmike/port-for
pkgname=python-${_py_pkgname}
pkgver=0.4
pkgrel=3
pkgdesc="Utility that helps with local TCP ports managment. It can find an unused TCP localhost port and remember the association."
arch=('any')
url="${_github_url}"
license=('MIT')
depends=('python')
makedepends=('git' 'python-setuptools')
checkdepends=('python-tox')
source=(${_py_pkgname}::git+${_github_url}.git#tag=$pkgver)
sha256sums=('SKIP')

build() {
    cd "${srcdir}/${_py_pkgname}"
    python setup.py build
}

check() {
    cd "${srcdir}/${_py_pkgname}"
    tox -e py3
}

package_python-port-for() {
    cd "${srcdir}/${_py_pkgname}"

    python setup.py install --skip-build --root="${pkgdir}" --optimize=1

    install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=4 sw=4 et: