# Template file for 'fuzzypkg'
pkgname=fuzzypkg
version=1.0.6
revision=1
depends="bash xtools"
short_desc="XBPS fuzzy package manager"
maintainer="Zach Dykstra <dykstra.zachary@gmail.com>"
license="MIT"
homepage="https://github.com/zdykstra/fuzzypkg"
distfiles="https://github.com/zdykstra/fuzzypkg/archive/v${version}.tar.gz"
checksum=a3078ad6602ab9e5a158814f41a7ad4c82a4c161713c1cfe0d6e0afb1b6a82a8

case "$XBPS_TARGET_MACHINE" in
	x86_64*|i686*|armv[67]*|aarch64*|ppc64le*)
		depends+=" fzf"
		;;
	*)
		depends+=" skim"
		;;
esac

do_install() {
	vlicense LICENSE
	vbin fuzzypkg
	vinstall ${pkgname}.desktop 644 usr/share/applications
}
