From f9e819da0653c1628f30b3a4d460fccedb51000f Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sun, 10 Nov 2019 13:15:19 +0100 Subject: community/hidapi: move from testing and take maintainership --- community/hidapi/APKBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 community/hidapi/APKBUILD (limited to 'community') diff --git a/community/hidapi/APKBUILD b/community/hidapi/APKBUILD new file mode 100644 index 0000000000..56128f2336 --- /dev/null +++ b/community/hidapi/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Sören Tempel +# Maintainer: Jakub Jirutka +pkgname=hidapi +pkgver=0.9.0 +pkgrel=2 +pkgdesc="Simple library for communicating with USB and Bluetooth HID devices" +url="https://github.com/libusb/hidapi" +arch="all" +license="custom" +options="!check" +makedepends="libusb-dev libtool eudev-dev linux-headers autoconf automake" +subpackages="$pkgname-dev $pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/libusb/$pkgname/archive/$pkgname-$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgname-$pkgver" + +prepare() { + default_prepare + + ./bootstrap +} + +build() { + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --disable-static + make +} + +package() { + make DESTDIR="$pkgdir" install + + mkdir -p "$pkgdir"/usr/share/licenses/$pkgname + mv "$pkgdir"/usr/share/doc/$pkgname/LICENSE* \ + "$pkgdir"/usr/share/licenses/$pkgname +} + +sha512sums="d9f28d394b78daece7d2dfb946e62349a56b388b3a06241585c6fad5a4e24dc914723de6c0f12a9e51cd23fb245f6b5ac9b3721319646d5ba5912bbe0a3f9a52 hidapi-0.9.0.tar.gz" -- cgit v1.2.3