mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 15:12:02 +01:00
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=hstr
|
|
pkgver=1.25
|
|
pkgrel=1
|
|
pkgdesc="Bash and ZSH shell history suggest box"
|
|
url="https://github.com/dvorka/hstr"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
makedepends="autoconf automake libtool ncurses-dev readline-dev"
|
|
options="!check" # no *automated* tests to run
|
|
subpackages="$pkgname-doc"
|
|
source="https://github.com/dvorka/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz
|
|
hstr-symlink.patch"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
sed -i "s|<ncursesw/curses.h>|<curses.h>|" \
|
|
src/include/hstr_curses.h src/hstr.c
|
|
|
|
cd "$builddir"/dist
|
|
sh 1-dist.sh
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make install DESTDIR="$pkgdir"
|
|
}
|
|
|
|
sha512sums="83c6250b1627bf185a572a7278a23f1e779d8f926f62fe341644f0d26b4f9daac8d904a5fe5af63e963a2ec15b7d98ee229bd5f812ee0d167bd2a12ee2e57467 hstr-1.25.tar.gz
|
|
eca1780a23f75d4987eea078b952648fa8db2b03e0dcf90cb46f7251d7096f83a95b17e9ca344cded72aeade77de355fd34d31157ea2d2d581eba3a957f745d0 hstr-symlink.patch"
|