aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarian Buschsieweke <marian.buschsieweke@ovgu.de>2019-05-31 09:32:07 +0200
committerMilan P. Stanić <mps@arvanta.net>2019-05-31 12:18:47 +0200
commit7208a01d13379e4f2894b946a043ccf31441b4d0 (patch)
tree45c16e909ad6891324ed3b8233889f68ff70b496
parent9ff58b75e55de0d21f4fdbd8de5cd4aa571e1440 (diff)
downloadaports-7208a01d13379e4f2894b946a043ccf31441b4d0.tar.gz
aports-7208a01d13379e4f2894b946a043ccf31441b4d0.tar.bz2
aports-7208a01d13379e4f2894b946a043ccf31441b4d0.tar.xz
testing/libsigrok: New aport
A C library providing access to logic analyzers and related file formats https://sigrok.org/wiki/Libsigrok
-rw-r--r--testing/libsigrok/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/libsigrok/APKBUILD b/testing/libsigrok/APKBUILD
new file mode 100644
index 0000000000..43a945de29
--- /dev/null
+++ b/testing/libsigrok/APKBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
+
+pkgname="libsigrok"
+pkgver=0.5.1
+pkgrel=0
+pkgdesc="A C library providing access to logic analyzers and related file formats"
+url="https://sigrok.org/wiki/Libsigrok"
+makedepends="libzip-dev glib-dev libserialport-dev libusb-dev libftdi1-dev
+ glibmm-dev check-dev"
+depends=""
+arch="all"
+license="GPL-3.0-only"
+source="http://sigrok.org/download/source/$pkgname/$pkgname-$pkgver.tar.gz"
+subpackages="$pkgname-dev"
+builddir="$srcdir/$pkgname-$pkgver"
+# Check fails in virtual environment (e.g. on the Alpine LXC build containers),
+# as libusb requires /dev/bus/usb be present/usable to be initialized. The
+# unit tests pass on a real hardware
+options="!check"
+
+build() {
+ cd "${builddir}"
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "${builddir}"
+ make check
+}
+
+package() {
+ cd "${builddir}"
+ make DESTDIR="$pkgdir" install
+ mkdir -p "${pkgdir}/lib/udev/rules.d"
+ cp contrib/60-libsigrok.rules "${pkgdir}/lib/udev/rules.d/60-libsigrok.rules"
+ cp contrib/61-libsigrok-plugdev.rules "${pkgdir}/lib/udev/rules.d/60-libsigrok.rules"
+}
+
+sha512sums="48337fc4625dc0abc162ae54e04ce091047835aa1e49ba1ab84542805008d1ff5646b143fde57e317f3b34514c0e6d4dcb7b1c5944f3f16bdef1a7169edc3517 libsigrok-0.5.1.tar.gz"