2018-08-12 14:25:04 +08:00
# Maintainer: Christian Wieden <wiedenchr at gmail dot com>
2016-11-12 23:21:59 +08:00
# Contributor: Ricardo Band <me at xengi dot de>
# Contributor: Filip Szymański <fszymanski at, fedoraproject.org>
2019-05-08 01:50:13 +08:00
# Contributor: Busindre <busilezas at busindre.com>
2016-11-12 23:21:59 +08:00
pkgname=hstr
2023-04-19 05:10:27 +08:00
pkgver=3.1
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."
2022-12-12 03:28:00 +08:00
arch=('x86_64'
'i686'
'arm'
'armv6h'
'armv7h'
'aarch64')
2014-02-26 10:01:07 +08:00
url="https://github.com/dvorka/hstr"
license=('Apache')
2016-11-12 23:21:59 +08:00
makedepends=('autoconf' 'automake' 'ncurses' 'readline')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/dvorka/${pkgname}/archive/${pkgver}.tar.gz)
2019-12-23 21:47:01 +08:00
sha256sums=('886531ca9d8d1a5a93a3db96e9fc64154a03f6de428c74c722b41057bceca266')
2014-02-26 10:01:07 +08:00
2016-11-12 23:21:59 +08:00
prepare() {
cd "${pkgname}-${pkgver}"
2015-05-21 17:51:51 +08:00
sed -i -e "s#<ncursesw/curses.h>#<curses.h>#g" src/include/hstr_curses.h
2018-08-15 01:57:52 +08:00
sed -i -e "s#<ncursesw/curses.h>#<curses.h>#g" src/include/hstr.h
2016-11-12 23:21:59 +08:00
}
build() {
2018-08-12 13:55:49 +08:00
cd "${pkgname}-${pkgver}/build/tarball"
./tarball-automake.sh
cd ../..
2014-02-26 10:01:07 +08:00
./configure --prefix=/usr
make
}
package() {
2016-11-12 23:21:59 +08:00
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}/" install
install -D -p -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -p -m 644 Changelog "${pkgdir}/usr/share/doc/${pkgname}/Changelog"
install -D -p -m 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
2014-02-26 10:01:07 +08:00
}