PKGBUILDs/alarm/wiringpi/PKGBUILD

53 lines
1.4 KiB
Bash
Raw Normal View History

# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
plugrel=3
_pkgbase='wiringPi'
pkgname=wiringpi
pkgver=19_Jul_2012
pkgrel=1
pkgdesc="WiringPi: An implementation of most of the Arduino Wiring functions for the Raspberry Pi"
arch=('arm')
license=('LGPL')
url="https://projects.drogon.net/raspberry-pi/wiringpi/"
install=${pkgname}.install
source=(wiringPi.tgz)
md5sums=('b3c6b79c525e0d1db436445f7aabe716')
build() {
cd "${srcdir}/${_pkgbase}/wiringPi"
make
cd "${srcdir}/${_pkgbase}/gpio"
cp ../wiringPi/wiringPi.h ./
make
cd "${srcdir}/${_pkgbase}/examples"
cp ../wiringPi/wiringPi.h ./
make
}
package(){
cd "${srcdir}/${_pkgbase}/wiringPi"
make DESTDIR="${pkgdir}" install
cd "${srcdir}/${_pkgbase}/gpio"
make DESTDIR="${pkgdir}" install
cd "${srcdir}/${_pkgbase}/examples"
install -Dm750 "${srcdir}/wiringPi/examples/test1" "${pkgdir}/root/wiringPi_examples/test1"
install -Dm750 "${srcdir}/wiringPi/examples/test2" "${pkgdir}/root/wiringPi_examples/test2"
install -Dm750 "${srcdir}/wiringPi/examples/speed" "${pkgdir}/root/wiringPi_examples/speed"
install -Dm750 "${srcdir}/wiringPi/examples/lcd" "${pkgdir}/root/wiringPi_examples/lcd"
install -Dm750 "${srcdir}/wiringPi/examples/wfi" "${pkgdir}/root/wiringPi_examples/wfi"
install -Dm750 "${srcdir}/wiringPi/examples/piface" "${pkgdir}/root/wiringPi_examples/piface"
}