2018-07-06 18:59:09 +00:00
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# Contributor: Paul Adams <paul@thoughtcriminal.co.uk>
|
2015-02-24 01:08:07 +00:00
|
|
|
|
2018-03-18 20:33:03 +00:00
|
|
|
buildarch=28
|
2015-02-24 01:08:07 +00:00
|
|
|
|
2015-03-03 14:36:09 +00:00
|
|
|
pkgbase='wiringx-git'
|
2015-03-03 11:44:17 +00:00
|
|
|
pkgname=('wiringx-git' 'python-wiringx-git' 'python2-wiringx-git')
|
2019-11-30 18:43:58 +00:00
|
|
|
pkgver=r245.8efb389
|
|
|
|
pkgrel=1
|
2015-02-24 01:08:07 +00:00
|
|
|
pkgdesc="wiringX is a modular GPIO interface, derived from wiringPi"
|
2018-07-06 18:59:09 +00:00
|
|
|
arch=('armv6h' 'armv7h' 'aarch64')
|
|
|
|
url="https://github.com/wiringX/wiringX"
|
2015-02-24 01:08:07 +00:00
|
|
|
license=('GPL')
|
2015-03-03 14:36:09 +00:00
|
|
|
makedepends=('git' 'cmake' 'sed' 'python-setuptools' 'python2-setuptools')
|
2018-07-06 18:59:09 +00:00
|
|
|
source=(${pkgname}::git+https://github.com/wiringX/wiringX)
|
2015-02-24 01:08:07 +00:00
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${pkgname}"
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
2016-02-04 11:43:21 +00:00
|
|
|
prepare() {
|
|
|
|
sed -i 's:DESTINATION sbin/:DESTINATION bin/:' "${pkgname}"/CMakeLists.txt
|
|
|
|
msg2 "Removing insecure rpaths"
|
|
|
|
sed -i 's|,-rpath=/usr/local/lib/||g' "${pkgname}"/CMakeLists.txt
|
|
|
|
}
|
|
|
|
|
2015-02-24 01:08:07 +00:00
|
|
|
build() {
|
|
|
|
cd "${pkgname}"
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
|
|
|
|
}
|
|
|
|
|
2015-03-03 11:44:17 +00:00
|
|
|
package_wiringx-git() {
|
2015-02-24 01:08:07 +00:00
|
|
|
cd "${pkgname}"
|
|
|
|
make DESTDIR="${pkgdir}/" install
|
|
|
|
}
|
|
|
|
|
2015-03-03 11:44:17 +00:00
|
|
|
package_python-wiringx-git() {
|
|
|
|
depends=('python' 'wiringx-git')
|
|
|
|
pkgdesc="Python bindings for wiringX"
|
|
|
|
cd "${pkgbase}/python"
|
|
|
|
python setup.py install --root="$pkgdir/" --optimize=1
|
|
|
|
}
|
|
|
|
|
|
|
|
package_python2-wiringx-git() {
|
|
|
|
depends=('python2' 'wiringx-git')
|
|
|
|
pkgdesc="Python2 bindings for wiringX"
|
|
|
|
cd "${pkgbase}/python"
|
|
|
|
python2 setup.py install --root="$pkgdir/" --optimize=1
|
|
|
|
}
|
|
|
|
|
2015-02-24 01:08:07 +00:00
|
|
|
# vim:set ts=2 sw=2 et:
|
|
|
|
|