2015-05-21 17:51:51 +08:00
# Maintainer: Christian Wieden <wiedenchr at gmail dot com
# Contributer: Ricardo Band <me at xengi dot de>
2014-02-26 10:01:07 +08:00
pkgname=hh
2015-11-26 04:29:44 +08:00
pkgver=1.19
2014-02-26 10:01:07 +08:00
pkgrel=1
pkgdesc="A command line utility that brings improved BASH command completion from the history. It aims to make completion easier and more efficient than Ctrl-r."
arch=('any')
url="https://github.com/dvorka/hstr"
license=('Apache')
2015-05-21 17:53:34 +08:00
makedepends=('readline' 'ncurses')
2014-02-26 10:01:07 +08:00
_pkgver=$(echo "$pkgver" | sed 's/.[0-9]*$//')
2015-05-21 17:51:51 +08:00
source=(https://github.com/dvorka/hstr/releases/download/$pkgver/$pkgname-$pkgver-src.tgz)
md5sums=('46336873fb23e7b59b54655f05b221d5')
2014-02-26 10:01:07 +08:00
build() {
cd "$srcdir/hstr"
2015-05-21 17:51:51 +08:00
sed -i -e "s#<ncursesw/curses.h>#<curses.h>#g" src/include/hstr_curses.h
sed -i -e "s#<ncursesw/curses.h>#<curses.h>#g" src/hstr.c
2014-02-26 10:01:07 +08:00
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/hstr"
make DESTDIR="$pkgdir/" install
}