Subject: [PATCH 1/2] testing/liblouis: new aport

From: Drew DeVault <[email-masked]>
Date: Fri, 24 Jan 2020 20:36:16 -0500

---
 testing/liblouis/APKBUILD | 43 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 testing/liblouis/APKBUILD

diff --git a/testing/liblouis/APKBUILD b/testing/liblouis/APKBUILD
new file mode 100644
index 0000000000..e348423dce
--- /dev/null
+++ b/testing/liblouis/APKBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Drew DeVault <[email-masked]>
+pkgname="liblouis"
+pkgver="3.12.0"
+pkgrel=0
+pkgdesc="Braille translator and back-translator"
+url="http://liblouis.org/"
+arch="all"
+license="GPL-3.0"
+depends=""
+makedepends=""
+install=""
+subpackages="$pkgname-static $pkgname-dev $pkgname-bin:_bin"
+source="
+	$pkgname-$pkgver.tar.gz::https://github.com/liblouis/liblouis/releases/download/v$pkgver/liblouis-$pkgver.tar.gz
+	"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--localstatedir=/var \
+		--enable-ucs4
+	make
+}
+
+check() {
+	make check
+}
+
+package() {
+	make DESTDIR="$pkgdir" install
+}
+
+_bin() {
+	mkdir -p "$subpkgdir"/usr
+	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
+}
+
+sha512sums="dde18b6d8627f03219e0f4805836a78672175a569fcf006ba679f2108357890bbe286136f3231c26f3ca567cc33ef9350c6e2d6c544a352638f7f243abc4cbda  liblouis-3.12.0.tar.gz"
-- 
2.25.0

---

From: Drew DeVault <[email-masked]>
Date: Fri, 24 Jan 2020 20:36:17 -0500

---
 testing/brltty/APKBUILD | 58 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)
 create mode 100644 testing/brltty/APKBUILD

diff --git a/testing/brltty/APKBUILD b/testing/brltty/APKBUILD
new file mode 100644
index 0000000000..f3434aad9c
--- /dev/null
+++ b/testing/brltty/APKBUILD
@@ -0,0 +1,58 @@
+# Maintainer: Drew DeVault <[email-masked]>
+pkgname="brltty"
+pkgver="6.0"
+pkgrel=0
+pkgdesc="Refreshable braille display driver daemon"
+url="http://brltty.app"
+arch="all"
+license="LGPL-2.1"
+makedepends="
+	autoconf
+	gpm-dev
+	icu-dev
+	liblouis-dev
+	linux-headers
+	tcl
+	"
+install="$pkgname.pre-install $pkgname.post-install"
+subpackages="$pkgname-dev $pkgname-doc"
+source="
+	http://brltty.app/archive/brltty-$pkgver.tar.xz
+	brltty.initd
+	brltty.confd
+	"
+builddir="$srcdir/$pkgname-$pkgver"
+options="!check" # no upstream test suite
+
+prepare() {
+	cp /usr/share/abuild/config.guess acdir/
+	cp /usr/share/abuild/config.sub acdir/
+	./autogen
+}
+
+build() {
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--localstatedir=/var \
+		--with-tables-directory=/usr/share/brltty \
+		--enable-gpm
+	make -j1
+}
+
+package() {
+	make INSTALL_ROOT="$pkgdir" install
+	install -m644 -D Documents/$pkgname.conf \
+		"$pkgdir"/etc/$pkgname.conf
+	install -m755 -D "$srcdir"/$pkgname.initd \
+		"$pkgdir"/etc/init.d/$pkgname
+	install -m644 -D "$srcdir"/$pkgname.confd \
+		"$pkgdir"/etc/conf.d/$pkgname
+}
+
+sha512sums="07344fa902ad169967ca39d19b09dfea24e698011031dd63dce3eb997a4cb86622ee9427b216976b3ef60e5cbabb710a621621447c6bfa2313748fc1a1cf4b06  brltty-6.0.tar.xz
+512331fd6b4c5621c14b8bf07a94b2318dc33fea245de1e66d6385e1dc4cbfde7cb0d53507b46c85a11defe65a936cca40ace80df76130c7af2ef5999899892c  brltty.initd
+f11f0d192cd7823307c2ce4ddc7b3fff5190f72d3f65a5524b487021a95a222aca1fd36ab1eb58ed533e7acd555bfb70f0c8a13db20338ea31527f3151fd2bd7  brltty.confd"
-- 
2.25.0