hstr/PKGBUILD

38 lines
1.4 KiB
Bash
Raw Normal View History

# 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>
# Contributor: Busindre <busilezas at busindre.com>
2016-11-12 23:21:59 +08:00
pkgname=hstr
2018-08-22 14:29:42 +08:00
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')
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)
sha256sums=('8d93ed8bfee1a979e8d06646e162b70316e2097e16243636d81011ba1000627a')
2016-11-12 23:21:59 +08:00
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
2016-11-12 23:21:59 +08:00
}
build() {
cd "${pkgname}-${pkgver}/build/tarball"
./tarball-automake.sh
cd ../..
./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"
}