# 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 }