From a5e096e20d6678507d918fb2364cd35897fa3573 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 15 Sep 2024 17:32:04 +0200 Subject: linenoise new --- linenoise/PKGBUILD | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 linenoise/PKGBUILD 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 +# Contributor: zfo + +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 +} -- cgit v1.2.3-70-g09d2