mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-17 23:34:07 +00:00
added alarm/wiringc1
This commit is contained in:
parent
b47f952e09
commit
f1d6a892aa
1 changed files with 51 additions and 0 deletions
51
alarm/wiringc1/PKGBUILD
Normal file
51
alarm/wiringc1/PKGBUILD
Normal file
|
@ -0,0 +1,51 @@
|
|||
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
|
||||
buildarch=4
|
||||
|
||||
_pkgname='wiringPi'
|
||||
pkgname=wiringc1
|
||||
pkgver=70.8a4df6c
|
||||
pkgrel=1
|
||||
pkgdesc="An implementation of most of the Arduino Wiring functions for the ODROID-C1"
|
||||
arch=('armv7h')
|
||||
makedepends=('git')
|
||||
license=('LGPL')
|
||||
url="https://github.com/hardkernel/wiringPi"
|
||||
source=("git+https://github.com/hardkernel/wiringPi.git")
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "${_pkgname}"
|
||||
echo $(git rev-list --count master).$(git rev-parse --short master)
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd "${_pkgname}"
|
||||
sed -i 's|/usr/local/bin/gpio|/usr/bin/gpio|' wiringPi/wiringPi.c
|
||||
}
|
||||
|
||||
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/"
|
||||
}
|
Loading…
Reference in a new issue