summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd22709fffeefb8f54d620ed670f80c68b936713 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pkgname=python-pymodbustcp
pkgver=0.1.10
pkgrel=1
pkgdesc='A simple Modbus/TCP library for Python'
arch=('any')
url='https://github.com/sourceperl/pyModbusTCP'
makedepends=('python-setuptools')
license=('MIT')
source=("$pkgname-$pkgver.tar.gz::https://github.com/sourceperl/pyModbusTCP/archive/v${pkgver}.tar.gz")
md5sums=('22eda2ad62e33818faad0addfd2fafe5')

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

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