summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b07eb764a77696b6c1f2065c767a544f689dd59 (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
# Maintainer: Shayne Hartford <shayneehartford@gmail.com>

_pkgname=modbus-tk
pkgname="python-${_pkgname}-git"
pkgver=r180.c168f71
pkgrel=3
pkgdesc="Create Modbus app easily with Python"
arch=("any")
url="https://github.com/ljean/${_pkgname}"
license=("MIT")
depends=(
    "python"
    "python-pyserial"
)
provides=("${_pkgname}" "python-${_pkgname}")
conflicts=("python-modbus-tk")
source=("git+${url}.git")
sha512sums=("SKIP")

pkgver() {
    cd "${srcdir}/${_pkgname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

package() {
    cd "${srcdir}/${_pkgname}"
    python setup.py install --root="$pkgdir" --optimize=1
}