mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
alarm/wiringpi to 107.8d188fa-1
This commit is contained in:
parent
2bdbeb0737
commit
d38995e0a2
1 changed files with 24 additions and 27 deletions
|
@ -1,54 +1,51 @@
|
|||
# Maintainer: Mike Brown <mbrown@archlinuxarm.org>
|
||||
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# Contributor: Mike Brown <mbrown@archlinuxarm.org>
|
||||
|
||||
buildarch=20
|
||||
|
||||
_pkgname='wiringPi'
|
||||
pkgname=wiringpi
|
||||
pkgver=106.96344ff
|
||||
_pkgname=wiringPi
|
||||
pkgver=107.8d188fa
|
||||
pkgrel=1
|
||||
pkgdesc="WiringPi: An implementation of most of the Arduino Wiring functions for the Raspberry Pi"
|
||||
pkgdesc='GPIO Interface library for the Raspberry Pi'
|
||||
arch=('armv6h' 'armv7h')
|
||||
makedepends=('git')
|
||||
license=('LGPL')
|
||||
url="http://wiringpi.com/"
|
||||
license=('LGPL3')
|
||||
url='http://wiringpi.com/'
|
||||
source=("git://git.drogon.net/wiringPi")
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "${_pkgname}"
|
||||
cd ${_pkgname}
|
||||
echo $(git rev-list --count master).$(git rev-parse --short master)
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd "${_pkgname}"
|
||||
cd ${_pkgname}
|
||||
sed -i 's|/usr/local/bin/gpio|/usr/bin/gpio|' wiringPi/wiringPi.c
|
||||
VERSION=$(cat VERSION)
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${_pkgname}"
|
||||
cd ${_pkgname}
|
||||
|
||||
make -C wiringPi all
|
||||
make -C devLib all INCLUDE+="-I${srcdir}/${_pkgname}/wiringPi"
|
||||
|
||||
ln -s "${srcdir}/${_pkgname}/wiringPi/libwiringPi.so.${VERSION}" wiringPi/libwiringPi.so
|
||||
ln -s "${srcdir}/${_pkgname}/devLib/libwiringPiDev.so.${VERSION}" devLib/libwiringPiDev.so
|
||||
|
||||
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"
|
||||
make -C wiringPiD 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"
|
||||
ln -s /usr/lib/libwiringPi.so.2.25 "${pkgdir}/usr/lib/libwiringPi.so"
|
||||
cd ${_pkgname}
|
||||
|
||||
cd "${srcdir}/${_pkgname}/devLib"
|
||||
install -m 0644 *.h "${pkgdir}/usr/include"
|
||||
install -m 0644 libwiringPiDev.{a,so*} "${pkgdir}/usr/lib"
|
||||
ln -s /usr/lib/libwiringPiDev.so.2.25 "${pkgdir}/usr/lib/libwiringPiDev.so"
|
||||
|
||||
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/"
|
||||
make LDCONFIG= PREFIX= DESTDIR="${pkgdir}/usr" -C wiringPi install
|
||||
make LDCONFIG= PREFIX= DESTDIR="${pkgdir}/usr" -C devLib install
|
||||
install -d "${pkgdir}/usr/bin"
|
||||
make PREFIX= DESTDIR="${pkgdir}/usr" WIRINGPI_SUID=0 -C gpio install
|
||||
install -m0755 wiringPiD/wiringpid "${pkgdir}/usr/bin"
|
||||
install -Dm644 COPYING.LESSER "$pkgdir/usr/share/licenses/$pkgname/COPYING.LESSER"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue