mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
Merge branch 'master' of github.com:archlinuxarm/PKGBUILDs
This commit is contained in:
commit
9d4078f484
4 changed files with 146 additions and 0 deletions
44
alarm/wiringpi-examples/PKGBUILD
Normal file
44
alarm/wiringpi-examples/PKGBUILD
Normal file
|
@ -0,0 +1,44 @@
|
|||
# $Id$
|
||||
# Maintainer: Mike Brown <mbrown@archlinuxarm.org>
|
||||
_pkgbase='wiringPi'
|
||||
pkgname=wiringpi-examples
|
||||
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/"
|
||||
depends=('wiringpi-headers')
|
||||
source=(http://project-downloads.drogon.net/files/wiringPi.tgz)
|
||||
md5sums=('b3c6b79c525e0d1db436445f7aabe716')
|
||||
install=wiringpi-examples.install
|
||||
groups=wiringpi
|
||||
|
||||
build() {
|
||||
|
||||
cd "${srcdir}/${_pkgbase}/examples"
|
||||
make
|
||||
|
||||
}
|
||||
|
||||
|
||||
package(){
|
||||
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"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
46
alarm/wiringpi-examples/wiringpi-examples.install
Normal file
46
alarm/wiringpi-examples/wiringpi-examples.install
Normal file
|
@ -0,0 +1,46 @@
|
|||
# This is a default template for a post-install scriptlet.
|
||||
# Uncomment only required functions and remove any functions
|
||||
# you don't need (and this header).
|
||||
|
||||
## arg 1: the new package version
|
||||
#pre_install() {
|
||||
# do something here
|
||||
#}
|
||||
|
||||
## arg 1: the new package version
|
||||
post_install() {
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo "*******************************************************************"
|
||||
echo "The test example programs are installed in /root/wiringPi_examples"
|
||||
echo "*******************************************************************"
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
}
|
||||
|
||||
## arg 1: the new package version
|
||||
## arg 2: the old package version
|
||||
#pre_upgrade() {
|
||||
# do something here
|
||||
#}
|
||||
|
||||
## arg 1: the new package version
|
||||
## arg 2: the old package version
|
||||
#post_upgrade() {
|
||||
# do something here
|
||||
#}
|
||||
|
||||
## arg 1: the old package version
|
||||
#pre_remove() {
|
||||
# do something here
|
||||
#}
|
||||
|
||||
## arg 1: the old package version
|
||||
post_remove() {
|
||||
echo ""
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
28
alarm/wiringpi-gpio/PKGBUILD
Normal file
28
alarm/wiringpi-gpio/PKGBUILD
Normal file
|
@ -0,0 +1,28 @@
|
|||
# $Id$
|
||||
# Maintainer: Mike Brown <mbrown@archlinuxarm.org>
|
||||
_pkgbase='wiringPi'
|
||||
pkgname=wiringpi-gpio
|
||||
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/"
|
||||
depends=('wiringpi-headers')
|
||||
source=(http://project-downloads.drogon.net/files/wiringPi.tgz)
|
||||
md5sums=('b3c6b79c525e0d1db436445f7aabe716')
|
||||
groups=wiringpi
|
||||
|
||||
build() {
|
||||
|
||||
cd "${srcdir}/${_pkgbase}/gpio"
|
||||
make
|
||||
|
||||
|
||||
}
|
||||
|
||||
package(){
|
||||
cd "${srcdir}/${_pkgbase}/gpio"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
}
|
28
alarm/wiringpi-headers/PKGBUILD
Normal file
28
alarm/wiringpi-headers/PKGBUILD
Normal file
|
@ -0,0 +1,28 @@
|
|||
# $Id$
|
||||
# Maintainer: Mike Brown <mbrown@archlinuxarm.org>
|
||||
plugrel=3
|
||||
_pkgbase='wiringPi'
|
||||
pkgname=wiringpi-headers
|
||||
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')
|
||||
provides=('wiringpi-headers')
|
||||
url="https://projects.drogon.net/raspberry-pi/wiringpi/"
|
||||
source=(http://project-downloads.drogon.net/files/wiringPi.tgz)
|
||||
md5sums=('b3c6b79c525e0d1db436445f7aabe716')
|
||||
groups=wiringpi
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_pkgbase}/wiringPi"
|
||||
make
|
||||
|
||||
}
|
||||
|
||||
package(){
|
||||
cd "${srcdir}/${_pkgbase}/wiringPi"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
|
||||
}
|
Loading…
Reference in a new issue