summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linenoise/PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/linenoise/PKGBUILD b/linenoise/PKGBUILD
new file mode 100644
index 000000000..9b4955e85
--- /dev/null
+++ b/linenoise/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: zfo <zfoofz1 at gmail dot com>
+
+pkgname=linenoise
+pkgver=1.0
+pkgrel=1
+pkgdesc="A small self-contained alternative to readline and libedit"
+arch=('i486' 'i686' 'pentium4' 'x86_64')
+url="https://github.com/antirez/linenoise"
+license=('BSD')
+_pinned_dependencies=(
+ 'glibc>=2.40+r16+gaa533d58ff'
+)
+depends=("${_pinned_dependencies[@]}")
+source=("https://github.com/antirez/linenoise/archive/$pkgver.tar.gz")
+sha512sums=('9e68fade8d64d7ba8d5d681e74d0ca6c4ebd9576249bb0e885b1aa708a9af77a43ea6264307ae46fb74e52219387a2c831b570f9601e331837f35294af9883e3')
+
+build() {
+ cd "$pkgname-$pkgver"
+ cc -shared -fPIC linenoise.c -o liblinenoise.so
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ install -D -m644 ./linenoise.h $pkgdir/usr/include/linenoise.h
+ install -D -m644 ./liblinenoise.so $pkgdir/usr/lib/liblinenoise.so
+}