mirror of
https://github.com/dvorka/hstr.git
synced 2024-11-15 12:30:45 +08:00
7bd962b447
Updatet version, md5sum. Add sed commands in build to incorporate ncurses structure under arch.
26 lines
881 B
Bash
26 lines
881 B
Bash
# Maintainer: Christian Wieden <wiedenchr at gmail dot com
|
|
# Contributer: Ricardo Band <me at xengi dot de>
|
|
pkgname=hh
|
|
pkgver=1.17
|
|
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')
|
|
_pkgver=$(echo "$pkgver" | sed 's/.[0-9]*$//')
|
|
source=(https://github.com/dvorka/hstr/releases/download/$pkgver/$pkgname-$pkgver-src.tgz)
|
|
md5sums=('46336873fb23e7b59b54655f05b221d5')
|
|
|
|
build() {
|
|
cd "$srcdir/hstr"
|
|
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
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/hstr"
|
|
make DESTDIR="$pkgdir/" install
|
|
}
|