aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarian Buschsieweke <marian.buschsieweke@ovgu.de>2019-04-04 18:55:54 +0200
committerMilan P. Stanić <mps@arvanta.net>2019-05-20 16:53:11 +0200
commit0d1949f2457db306c5325c46d1ce58ed8e3686dc (patch)
treef1e944407fd4d1618d47a989ace8dc4aeff7c712
parentf0c189ebff6cb90d14d09ea476f81f90401a95b1 (diff)
downloadaports-0d1949f2457db306c5325c46d1ce58ed8e3686dc.tar.gz
aports-0d1949f2457db306c5325c46d1ce58ed8e3686dc.tar.bz2
aports-0d1949f2457db306c5325c46d1ce58ed8e3686dc.tar.xz
testing/libserialport: New aport
A minimal C library handling OS-specific details when using serial ports https://sigrok.org/wiki/Libserialport
-rw-r--r--testing/libserialport/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/libserialport/APKBUILD b/testing/libserialport/APKBUILD
new file mode 100644
index 0000000000..7e6973212c
--- /dev/null
+++ b/testing/libserialport/APKBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
+
+pkgname="libserialport"
+pkgver=0.1.1
+pkgrel=0
+pkgdesc="A minimal C library handling OS-specific details when using serial ports"
+url="https://sigrok.org/wiki/Libserialport"
+makedepends="linux-headers"
+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"
+
+build() {
+ cd "${builddir}"
+ ./configure --prefix=/usr/
+ make
+}
+
+check() {
+ cd "${builddir}"
+ make check
+}
+
+package() {
+ cd "${builddir}"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="7d379d1099173841e6d4df04c8c12dc6a4ebdfa0323ef35da6f3dea20db55d4f6ad81c1f6679f5aac7fe83270176428a817daa8627c336505335a07e06350a85 libserialport-0.1.1.tar.gz"