2 # Maintainer: Jens Staal <staal1978@gmail.com>
7 pkgdesc="A minimal, zero-config, BSD licensed, readline replacement."
9 url="https://github.com/antirez/linenoise"
13 _gitroot=('git://github.com/antirez/linenoise.git')
14 _gitname=('linenoise')
19 msg "getting oh sources"
20 if [ -d $_gitname ] ; then
21 cd $_gitname && git pull $_gitroot
22 msg "The local files are updated."
24 git clone $_gitroot $_gitname
27 msg "setting up build directory"
29 cp -ar $srcdir/$_gitname $srcdir/build
35 mkdir -p $pkgdir/usr/{lib/$_gitname,include/$_gitname,share/licenses/$_gitname}
37 install -m755 $srcdir/build/linenoise_example $pkgdir/usr/lib/linenoise/
38 install -m755 $srcdir/build/linenoise.{c,h} $pkgdir/usr/include/
39 #it could perhaps be interesting with a wrapper script similar to the makefile or something to link against linenoise.
40 install -m644 $srcdir/build/README.markdown $pkgdir/usr/share/licenses/$_gitname/