# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=zsh-history-substring-search
pkgver=1.0.1
pkgrel=0
pkgdesc="Zsh port of the Fish shell's history search"
url="https://github.com/zsh-users/zsh-history-substring-search"
arch="noarch"
license="BSD"
depends="zsh"
source="$pkgname-$pkgver.tar.gz::https://github.com/zsh-users/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
options="!check"  # upstream does not provide tests

package() {
	cd "$builddir"

	install -D -m 644 $pkgname.zsh \
		"$pkgdir"/usr/share/zsh/packages/$pkgname/$pkgname.zsh
}

sha512sums="0795befa068cedd46578960cf4102baafd182b69db598700c6361aebf17f64615972a981a5c4aad48318c45e9e9cd623d53956c704baa1b024cef9df83b138eb  zsh-history-substring-search-1.0.1.tar.gz"
