# Maintainer: Timo Teräs pkgname=wiringpi pkgver=2.46 _commitid=8d188fa pkgrel=1 pkgdesc="command line interface for Raspberry Pi gpio" url="http://wiringpi.com/the-gpio-utility/" arch="armhf armv7" license="LGPL-3.0" options="!check" # no testsuite depends="" makedepends="linux-headers" install="" subpackages="$pkgname-dev" source="wiringpi-$pkgver.tar.gz::https://git.drogon.net/?p=wiringPi;a=snapshot;h=$_commitid;sf=tgz " builddir="$srcdir"/wiringPi-$_commitid build() { cd "$builddir" make -C wiringPi CFLAGS="$CFLAGS -I." LDFLAGS="$LDFLAGS" WIRINGPI_SONAME_SUFFIX=".$pkgver" ln -sf libwiringPi.so.$pkgver wiringPi/libwiringPi.so make -C devLib CFLAGS="$CFLAGS -I../wiringPi" LDFLAGS="$LDFLAGS" WIRINGPI_SONAME_SUFFIX=".$pkgver" ln -sf libwiringPiDev.so.$pkgver devLib/libwiringPiDev.so make -C gpio CFLAGS="$CFLAGS -I../wiringPi -I../devLib" LDFLAGS="$LDFLAGS -L../wiringPi -L../devLib" } package() { cd "$builddir" install -d -m755 "$pkgdir"/usr/include install -D -m644 wiringPi/*.h devLib/*.h "$pkgdir"/usr/include install -D -m755 wiringPi/libwiringPi.so."$pkgver" "$pkgdir"/usr/lib/libwiringPi.so."$pkgver" ln -s libwiringPi.so."$pkgver" "$pkgdir"/usr/lib/libwiringPi.so install -D -m755 devLib/libwiringPiDev.so."$pkgver" "$pkgdir"/usr/lib/libwiringPiDev.so."$pkgver" ln -s libwiringPiDev.so."$pkgver" "$pkgdir"/usr/lib/libwiringPiDev.so install -D -m755 gpio/gpio "$pkgdir"/usr/bin/gpio } sha512sums="ef46522557968b84534b407670217102bea3e83cff941dfa049220b439923231e3bfd99ec8b93fef0951a019322855afd55c4a5c30f9e07b449b0623669f1efb wiringpi-2.46.tar.gz"