blob: 9b4955e85c9cd92682448b1a60ff5fffe3ce69cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
}
|