aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libserialport/APKBUILD
blob: 678b2ca6b9059e8d29eebb9aa93a660023cb3ee3 (plain)
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=libserialport
pkgver=0.1.1
pkgrel=1
pkgdesc="A minimal C library handling OS-specific details when using serial ports"
url="https://sigrok.org/wiki/Libserialport"
arch="all"
license="GPL-3.0-only"
makedepends="linux-headers automake autoconf libtool"
source="https://github.com/sigrokproject/libserialport/archive/libserialport-$pkgver/libserialport-$pkgver.tar.gz"
builddir="$srcdir/libserialport-libserialport-$pkgver"
subpackages="$pkgname-dev"

prepare() {
	default_prepare

	./autogen.sh
}

build() {
	./configure --prefix=/usr/
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
b3978ac779f7eb6abb0cf7b4c623e107ba4ad3e6cee9da264500309783f1b28934b511b483d298105eed31eaf96196c93c45fdd89bd13bae04f2449d774f33af  libserialport-0.1.1.tar.gz
"