aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libsigrok/APKBUILD
blob: 3c95bc3cff43b2b19bcc608cb605f48ce6654539 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>

pkgname=libsigrok
pkgver=0.5.1
pkgrel=2
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 doxygen"
arch="all"
license="GPL-3.0-only"
source="http://sigrok.org/download/source/$pkgname/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-dev"
# 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() {
	./configure --prefix=/usr --disable-static
	make
}

check() {
	make check
}

package() {
	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"