# Contributor: Dawid Dziurla <dawidd0811@gmail.com>
# Maintainer:
pkgname=zsh-syntax-highlighting
pkgver=0.8.0
pkgrel=1
pkgdesc="Fish shell like syntax highlighting for Zsh"
url="https://github.com/zsh-users/zsh-syntax-highlighting"
arch="noarch"
license="BSD-3-Clause"
depends="zsh"
subpackages="$pkgname-doc"
source="https://github.com/zsh-users/zsh-syntax-highlighting/archive/$pkgver/zsh-syntax-highlighting-$pkgver.tar.gz
	ungit.patch
	install-plugin-zsh.patch
	"

build() {
	make
}

check() {
	make test
}

package() {
	make install DESTDIR="$pkgdir" PREFIX="/usr" \
		SHARE_DIR="$pkgdir/usr/share/zsh/plugins/$pkgname"
}

sha512sums="
58593c8bf3fa1476ecf0fceb1fc4eab986a778de657d359a28fe48798e787896fbf2588441c69b017a08227ab44dd46473afb16e0f125aae59cc58004bfa8c2e  zsh-syntax-highlighting-0.8.0.tar.gz
fbcc80362269bef7902b153470a4dbf0031c30d4bc92a2efaccf2b74b70cd26ff0202011e8ca63bce68bac3a3dbd47cc3c1015358aed8cf12332942fd186ab2d  ungit.patch
f270feb2e8a761d23f6429df86a0197be51b3f1e7044f9d29feabe1700f7a8e4794c35ced61cac7636288ec3d8d0a000fa9916e3756f136875ec5d48a0a177c3  install-plugin-zsh.patch
"
