Subject: [alpine-aports] [PATCH 1/6] testing/libserialport: New aport

From: Marian Buschsieweke <[email-masked]>
Date: Thu, 4 Apr 2019 18:55:54 +0200

A minimal C library handling OS-specific details when using serial ports
https://sigrok.org/wiki/Libserialport
---
 testing/libserialport/APKBUILD | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 testing/libserialport/APKBUILD

diff --git a/testing/libserialport/APKBUILD b/testing/libserialport/APKBUILD
new file mode 100644
index 0000000000..18e54e3be0
--- /dev/null
+++ b/testing/libserialport/APKBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Marian Buschsieweke <[email-masked]>
+
+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=""
+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"
-- 
2.21.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Marian Buschsieweke <[email-masked]>
Date: Thu, 4 Apr 2019 18:55:59 +0200

A command-line frontend for sigrok
https://sigrok.org/wiki/Sigrok-cli
---
 testing/sigrok-cli/APKBUILD | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 testing/sigrok-cli/APKBUILD

diff --git a/testing/sigrok-cli/APKBUILD b/testing/sigrok-cli/APKBUILD
new file mode 100644
index 0000000000..e24a711a6a
--- /dev/null
+++ b/testing/sigrok-cli/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Marian Buschsieweke <[email-masked]>
+
+pkgname="sigrok-cli"
+pkgver=0.7.0
+pkgrel=0
+pkgdesc="A command-line frontend for sigrok"
+url="https://sigrok.org/wiki/Sigrok-cli"
+makedepends="libserialport-dev libsigrok-dev libsigrokdecode-dev"
+depends=""
+arch="all"
+license="GPL-3.0-only"
+source="http://sigrok.org/download/source/$pkgname/$pkgname-$pkgver.tar.gz"
+subpackages="$pkgname-doc"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+	cd "${builddir}"
+	./configure --prefix=/usr/
+	make
+}
+
+check() {
+	make check
+}
+
+package() {
+	cd "${builddir}"
+	make DESTDIR="$pkgdir" install
+}
+
+sha512sums="c3323fea1a10fb67787e287195c8d7c1a1a47540fb90f6f41ac5f1adc19e1496a0712b41e17253d8e9d269b1da84a9058f0f099cf2ca96dd0201f5c6172e4ff6  sigrok-cli-0.7.0.tar.gz"
-- 
2.21.0

---

---

From: Milan P. Stanić <[email-masked]>
Date: Mon, 20 May 2019 16:57:33 +0200

Hi,

makedepends needs "linux-headers"
I added it and pushed package.

Also for next upgrade could you try to make libserialport-static
subpackage where static library should be moved.

---