aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian <sebastian@sebsite.pw>2022-02-12 18:51:47 -0500
committerdispatch <dispatch@listserv.local>2022-02-13 00:03:08 +0000
commit9b1ccf63395021fc60aa571b22d4f03cebe5cf18 (patch)
tree59cb8b22f9d5c0cd70eb71917e6dde2755e706e4
parent9051e0a6e005e1a8a913b5789baabf418f66aa65 (diff)
downloadaports-patches/3933.tar.gz
aports-patches/3933.tar.bz2
aports-patches/3933.tar.xz
testing/bestline: new aportpatches/3933
https://github.com/jart/bestline Minimal replacement for readline Signed-off-by: Sebastian <sebastian@sebsite.pw>
-rw-r--r--testing/bestline/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/bestline/APKBUILD b/testing/bestline/APKBUILD
new file mode 100644
index 0000000000..344e185376
--- /dev/null
+++ b/testing/bestline/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Sebastian Hudak <sebastian@sebsite.pw>
+# Maintainer: Sebastian Hudak <sebastian@sebsite.pw>
+pkgname=bestline
+# No official release tagged yet; not ready to be moved out of testing.
+pkgver=0.0_git20211108
+_commit=8ab535e621b3848f8491469c2083c7ecb0df3e22
+pkgrel=0
+pkgdesc="Minimal replacement for readline"
+url="https://github.com/jart/bestline"
+arch="all"
+license="BSD-2-Clause"
+subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc"
+source="https://github.com/jart/bestline/archive/$_commit.tar.gz"
+builddir="$srcdir/$pkgname-$_commit"
+options="!check" # No test suite
+
+build() {
+ # Makefile doesn't use -fPIC, which is needed for shared library
+ ${CC:-gcc} $CFLAGS -fPIC -c -o bestline.o bestline.c
+ ${CC:-gcc} $LDFLAGS -shared -o libbestline.so bestline.o
+}
+
+package() {
+ install -Dm644 bestline.o "$pkgdir"/usr/lib/bestline.o
+ install -Dm755 libbestline.so "$pkgdir"/usr/lib/libbestline.so
+ install -Dm644 bestline.h "$pkgdir"/usr/include/bestline.h
+ install -Dm644 README.md "$pkgdir"/usr/share/doc/bestline/README.md
+ install -m644 bestline.gif "$pkgdir"/usr/share/doc/bestline/bestline.gif
+}
+
+sha512sums="cd7411604c47a6910188394343b0388a0e580de891d332f4eea89f308888dfce5348fc94e826cb6cf960896ebf6272280cca90caca4537ca54e8719df61ec57b 8ab535e621b3848f8491469c2083c7ecb0df3e22.tar.gz"