Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (22 sloc) 762 Bytes
# Maintainer: ArchStrike <team@archstrike.org>
buildarch=1
pkgname=python2-modbus_tk
pkgver=0.5.11
pkgrel=1
pkgdesc="Implementation of modbus protocol in python"
url="https://github.com/ljean/modbus-tk"
depends=('python2')
makedepends=('python2-setuptools')
license=('LGPL')
arch=('any')
source=("${url}/archive/${pkgver}.tar.gz")
sha512sums=('5b8cfbdaa6ed88cb03a5c9d2836ed8e1f1c7b83443b51dd25ab6d92038ebaad9c9268f68ce9054ff86b4c0423028d625acdfadf2022e6ef5f12adabee0d82670')
build() {
cd modbus-tk-"${pkgver}"
python2 setup.py build
}
package() {
cd modbus-tk-"${pkgver}"
python2 setup.py install --root="${pkgdir}" -O1 --skip-build
find "${pkgdir}" -type f -name '*.py' | xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|'
}
You can’t perform that action at this time.