diff options
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-09-15 17:32:04 +0200 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-09-15 17:32:04 +0200 |
commit | a5e096e20d6678507d918fb2364cd35897fa3573 (patch) | |
tree | 327f75dfe6084e8a38a509c40a05358329e5a617 /linenoise | |
parent | eb9ec6bef1eda8ea428eec84bab7fa63b3b3fb4e (diff) | |
download | archlinuxewe-a5e096e20d6678507d918fb2364cd35897fa3573.tar.xz |
linenoise new
Diffstat (limited to 'linenoise')
-rw-r--r-- | linenoise/PKGBUILD | 27 |
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 +} |