# Maintainer: Christian Wieden # Contributor: Filip SzymaƄski pkgname=hstr-git pkgver=1.23.r3.g203cca6 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') makedepends=('git' 'readline' 'ncurses') depends=('readline') source=(git://github.com/dvorka/hstr.git#branch=master) md5sums=('SKIP') conflicts=('hh'); build() { cd "hstr/dist" ./1-dist.sh cd .. sed -i -e "s###g" src/include/hstr_curses.h sed -i -e "s###g" src/hstr.c ./configure --prefix=/usr make } package() { cd "hstr" make DESTDIR="$pkgdir/" install } pkgver() { cd "hstr" git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g' }