mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
# Maintainer: Mike Brown <mbrown@archlinuxarm.org>
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
buildarch=18
|
|
|
|
_pkgname='wiringPi'
|
|
pkgname=wiringpi
|
|
pkgver=20130613
|
|
pkgrel=1
|
|
pkgdesc="WiringPi: An implementation of most of the Arduino Wiring functions for the Raspberry Pi"
|
|
arch=('arm')
|
|
makedepends=('git')
|
|
license=('LGPL')
|
|
url="http://wiringpi.com/"
|
|
source=("git://git.drogon.net/wiringPi")
|
|
md5sums=('SKIP')
|
|
|
|
build() {
|
|
cd "${_pkgname}"
|
|
|
|
make -C wiringPi all static
|
|
make -C devLib all static INCLUDE+="-I${srcdir}/${_pkgname}/wiringPi" LDFLAGS+="-L${srcdir}/${_pkgname}/wiringPi"
|
|
make -C gpio INCLUDE+="-I${srcdir}/${_pkgname}/wiringPi -I${srcdir}/${_pkgname}/devLib" LDFLAGS+="-L${srcdir}/${_pkgname}/wiringPi -L${srcdir}/${_pkgname}/devLib"
|
|
}
|
|
|
|
package(){
|
|
cd "${srcdir}/${_pkgname}/wiringPi"
|
|
install -m 0755 -d "${pkgdir}/usr/lib"
|
|
install -m 0755 -d "${pkgdir}/usr/include"
|
|
install -m 0644 *.h "${pkgdir}/usr/include"
|
|
install -m 0644 libwiringPi.{a,so*} "${pkgdir}/usr/lib"
|
|
|
|
cd "${srcdir}/${_pkgname}/devLib"
|
|
install -m 0644 *.h "${pkgdir}/usr/include"
|
|
install -m 0644 libwiringPiDev.{a,so*} "${pkgdir}/usr/lib"
|
|
|
|
cd "${srcdir}/${_pkgname}/gpio"
|
|
install -m 0755 -d "${pkgdir}/usr/bin"
|
|
install -m 4755 gpio "${pkgdir}/usr/bin"
|
|
mkdir -p "${pkgdir}/usr/share/man/man1"
|
|
install -m 0644 gpio.1 "${pkgdir}/usr/share/man/man1/"
|
|
}
|