mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
Merge pull request #1113 from crazystick/wiringx
WiringX - A modular GPIO library for several platforms
This commit is contained in:
commit
af8c770717
1 changed files with 49 additions and 0 deletions
49
alarm/wiringx-git/PKGBUILD
Normal file
49
alarm/wiringx-git/PKGBUILD
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
# Maintainer: Paul Adams <paul@thoughtcriminal.co.uk>
|
||||||
|
|
||||||
|
buildarch=20
|
||||||
|
|
||||||
|
pkgbase='wiringx-git'
|
||||||
|
pkgname=('wiringx-git' 'python-wiringx-git' 'python2-wiringx-git')
|
||||||
|
pkgver=r87.6ae11ce
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="wiringX is a modular GPIO interface, derived from wiringPi"
|
||||||
|
arch=('arm')
|
||||||
|
url="http://wiringx.org"
|
||||||
|
license=('GPL')
|
||||||
|
makedepends=('git' 'cmake' 'sed' 'python-setuptools' 'python2-setuptools')
|
||||||
|
source=(${pkgname}::git+https://github.com/wiringX/wiringX)
|
||||||
|
md5sums=('SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "${pkgname}"
|
||||||
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "${pkgname}"
|
||||||
|
msg2 "Removing insecure rpaths"
|
||||||
|
sed -i 's|,-rpath=/usr/local/lib/||g' CMakeLists.txt
|
||||||
|
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
|
||||||
|
}
|
||||||
|
|
||||||
|
package_wiringx-git() {
|
||||||
|
cd "${pkgname}"
|
||||||
|
make DESTDIR="${pkgdir}/" install
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 et:
|
||||||
|
|
Loading…
Reference in a new issue