mirror of
https://github.com/dvorka/hstr.git
synced 2024-12-27 09:53:11 +08:00
36 lines
1.3 KiB
Bash
36 lines
1.3 KiB
Bash
# Maintainer: Christian Wieden <wiedenchr at gmail dot com>
|
|
# Contributor: Ricardo Band <me at xengi dot de>
|
|
# Contributor: Filip Szymański <fszymanski at, fedoraproject.org>
|
|
|
|
pkgname=hstr
|
|
pkgver=2.0
|
|
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=('autoconf' 'automake' 'ncurses' 'readline')
|
|
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/dvorka/${pkgname}/archive/${pkgver}.tar.gz)
|
|
sha256sums=('6c130afd8ca570ee1988a0c7d6a96efeeabd21be7e05ce1f3144bb3c86c74441')
|
|
|
|
prepare() {
|
|
cd "${pkgname}-${pkgver}"
|
|
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/include/hstr.h
|
|
}
|
|
|
|
build() {
|
|
cd "${pkgname}-${pkgver}/build/tarball"
|
|
./tarball-automake.sh
|
|
cd ../..
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
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"
|
|
}
|