pkgbuilds/hstr/PKGBUILD

35 lines
1.1 KiB
Bash
Raw Permalink Normal View History

2023-09-07 09:08:14 -06:00
# Maintainer: Kevin Muñoz <kmunoz@condorbs.net>
pkgname=hstr
pkgver=3.1
pkgrel=1
pkgdesc="Bash and Zsh shell history suggest box - easily view, navigate, search and manage your command history."
arch=('x86_64')
url="https://github.com/dvorka/hstr"
license=('Apache')
makedepends=('readline' 'ncurses')
depends=('readline')
source=("https://github.com/dvorka/$pkgname/archive/$pkgver.tar.gz")
sha256sums=('e5293d4fe2502662f19c793bef416e05ac020490218e71c75a5e92919c466071')
build() {
cd "$pkgname-$pkgver/build/tarball"
./tarball-automake.sh
cd ../..
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
./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"
}