diff options
author | Timo Teräs <timo.teras@iki.fi> | 2015-06-09 13:47:18 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2015-06-09 13:49:36 +0000 |
commit | 124d7f8752127c7f75b8deda726cebe92abf7096 (patch) | |
tree | 37ccfab1f1db0ed872a4220fe12cdf0d778cff6d /testing/wiringpi | |
parent | e653c8729ccce79168d4c5f332f4fd3880224eb4 (diff) | |
download | aports-124d7f8752127c7f75b8deda726cebe92abf7096.tar.bz2 aports-124d7f8752127c7f75b8deda726cebe92abf7096.tar.xz |
testing/wiringpi: new aport
Command line interface for Raspberry Pi GPIO
http://wiringpi.com/
Diffstat (limited to 'testing/wiringpi')
-rw-r--r-- | testing/wiringpi/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/wiringpi/APKBUILD b/testing/wiringpi/APKBUILD new file mode 100644 index 0000000000..e8512026d3 --- /dev/null +++ b/testing/wiringpi/APKBUILD @@ -0,0 +1,44 @@ +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=wiringpi +pkgver=2.25 +_commitid=5edd177 +pkgrel=0 +pkgdesc="command line interface for Raspberry Pi gpio" +url="http://wiringpi.com/the-gpio-utility/" +arch="all" +license="LGPLv3" +depends="" +makedepends="" +install="" +subpackages="" +source="wiringpi-$pkgver.tar.gz::https://git.drogon.net/?p=wiringPi;a=snapshot;h=$_commitid;sf=tgz + " + +_srcdir="$srcdir"/wiringPi-$_commitid + +prepare() { + local i + cd "$_srcdir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + sed -i -e '/sys\/ioctl/i#include <asm/ioctl.h>' wiringPi/wiringPiSPI.c +} + +build() { + cd "$_srcdir" + make -C wiringPi static CFLAGS="$CFLAGS -I." LDFLAGS="$LDFLAGS" || return 1 + make -C devLib static CFLAGS="$CFLAGS -I../wiringPi" LDFLAGS="$LDFLAGS" || return 1 + make -C gpio CFLAGS="$CFLAGS -I../wiringPi -I../devLib" LDFLAGS="$LDFLAGS -L../wiringPi -L../devLib" || return 1 +} + +package() { + cd "$_srcdir" + install -D -m755 gpio/gpio "$pkgdir"/usr/bin/gpio || return 1 +} + +md5sums="8c156806f2a7c2bf5573ef54955f0cda wiringpi-2.25.tar.gz" +sha256sums="c5f7b4807317eb74d81212337b893cb5a27981d01f6037e6be8a3a6d6e58a540 wiringpi-2.25.tar.gz" +sha512sums="6891ea57e5829772c4567502f6ed93e40e46e0263913df6dd59977016668ebc7457955e34524c1b1838e7ffd64ddf6c5e7d18c16a26b4799d6255cdb32783801 wiringpi-2.25.tar.gz" |