Subject: [PATCH] testing/codemadness-frontends: new aport

From: Miles Alan <[email-masked]>
Date: Fri, 29 May 2020 23:49:12 -0500

https://www.codemadness.org/idiotbox.html
Experimental (cli, web, and gopher) frontends for youtube, reddit, & duckduckgo
---
 testing/codemadness-frontends/APKBUILD | 40 ++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 testing/codemadness-frontends/APKBUILD

diff --git a/testing/codemadness-frontends/APKBUILD b/testing/codemadness-frontends/APKBUILD
new file mode 100644
index 00000000..e0761e10
--- /dev/null
+++ b/testing/codemadness-frontends/APKBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Miles Alan <[email-masked]>
+pkgname=codemadness-frontends
+pkgver=0.1
+pkgrel=0
+pkgdesc="Experimental (cli, web, and gopher) frontends for youtube, reddit, & duckduckgo"
+url="https://www.codemadness.org/idiotbox.html"
+arch="all"
+license="ISC"
+makedepends="libressl-dev libtls-standalone"
+options="!check" # Has no tests
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://codemadness.org/releases/frontends/frontends-$pkgver.tar.gz"
+builddir="$srcdir/frontends-$pkgver"
+
+prepare() {
+	sed -i 's/^#FRONTENDS_/FRONTENDS_/g' Makefile
+	sed -i 's/^#LIBTLS_/LIBTLS_/g' Makefile
+	default_prepare
+}
+
+build() {
+	make
+}
+
+package() {
+	install -Dm755 youtube/cgi $pkgdir/usr/bin/youtube-cgi
+	install -Dm755 youtube/gopher $pkgdir/usr/bin/youtube-gopher
+	install -Dm755 youtube/cli $pkgdir/usr/bin/youtube-cli
+
+	install -Dm755 duckduckgo/gopher $pkgdir/usr/bin/duckduckgo-gopher
+	install -Dm755 duckduckgo/cli $pkgdir/usr/bin/duckduckgo-cli
+
+	install -Dm755 reddit/gopher $pkgdir/usr/bin/reddit-gopher
+	install -Dm755 reddit/cli $pkgdir/usr/bin/reddit-cli
+
+	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+
+sha512sums="1c563cf135567069fed33a36af177a15872a5288e1ef0211432dff72ff07458b86b421014b307d8015e847bf646e8bdd888b8f983d214edc4952c555e7963506  codemadness-frontends-0.1.tar.gz"
-- 
2.26.2