# Template file for 'herbe'
pkgname=herbe-git
version=1.0.0
revision=1
wrksrc="herbe-git-${version}-${revision}"
hostmakedepends="git"
build_style=gnu-makefile
makedepends="libXft-devel freetype-devel"
short_desc="Daemon-less notifications without D-Bus"
maintainer="biopsin <biopsin@teknik.io>"
license="MIT"
homepage="https://github.com/dudik/herbe"
#distfiles="${homepage}/archive/${version}.tar.gz"
#checksum=78e454159050c86e030fb5a6cf997ac914345210cdf5a4ca4d7600c5296b7f76

do_fetch() {
	git clone --depth=1 https://github.com/dudik/herbe.git ${wrksrc} 
	cd ${wrksrc}
}
do_build() {
	[ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h
        CFLAGS="-I ${XBPS_CROSS_BASE}/usr/include/freetype2"
}

do_install() {
        make PREFIX=/usr DESTDIR=$DESTDIR install
        vlicense LICENSE
}
