diff --git a/alarm/python-wiringx-git/PKGBUILD b/alarm/python-wiringx-git/PKGBUILD new file mode 100644 index 000000000..e5b35520a --- /dev/null +++ b/alarm/python-wiringx-git/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Paul Adams + +buildarch=20 + +pkgname=python-wiringx-git +pkgver=r68.4492e00 +pkgrel=1 +pkgdesc="Python bindings for wiringX" +arch=('arm') +url="http://www.wiringx.org" +license=('GPL') +groups=() +depends=('python') +makedepends=('git') +provides=() +conflicts=() +replaces=() +backup=() +options=(!emptydirs) +install= +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)" +} + +package() { + cd "${pkgname}/python" + python setup.py install --root="$pkgdir/" --optimize=1 +} + +# vim:set ts=2 sw=2 et: diff --git a/alarm/python2-wiringx-git/PKGBUILD b/alarm/python2-wiringx-git/PKGBUILD new file mode 100644 index 000000000..d9c1aa914 --- /dev/null +++ b/alarm/python2-wiringx-git/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Paul Adams + +buildarch=20 + +pkgname=python2-wiringx-git +pkgver=r68.4492e00 +pkgrel=1 +pkgdesc="Python2 bindings for wiringX" +arch=('arm') +url="http://www.wiringx.org" +license=('GPL') +groups=() +depends=('python2') +makedepends=('git') +provides=() +conflicts=() +replaces=() +backup=() +options=(!emptydirs) +install= +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)" +} + +package() { + cd "${pkgname}/python" + python2 setup.py install --root="$pkgdir/" --optimize=1 +} + +# vim:set ts=2 sw=2 et: diff --git a/alarm/wiringx-git/PKGBUILD b/alarm/wiringx-git/PKGBUILD new file mode 100644 index 000000000..a09ab9625 --- /dev/null +++ b/alarm/wiringx-git/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Paul Adams + +buildarch=20 + +pkgname=wiringx-git +pkgver=r66.aad47d9 +pkgrel=1 +pkgdesc="wiringX is a modular GPIO interface, derived from wiringPi" +arch=('arm') +url="http://wiringx.org" +license=('GPL') +groups=() +depends=('glibc') +makedepends=('git' 'cmake' 'sed') +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +source=(${pkgname}::git+https://github.com/wiringX/wiringX) +noextract=() +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() { + cd "${pkgname}" + make DESTDIR="${pkgdir}/" install +} + +# vim:set ts=2 sw=2 et: +