# Template file for 'fswatch'
pkgname=fswatch
version=1.17.1
revision=1
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="doxygen"
short_desc="Cross-platform file change monitor with multiple backends"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://emcrisostomo.github.io/fswatch/"
changelog="https://github.com/emcrisostomo/fswatch/raw/master/NEWS"
distfiles="https://github.com/emcrisostomo/fswatch/releases/download/${version}/fswatch-${version}.tar.gz"
checksum=c38e341c567f5f16bfa64b72fc48bba5e93873d8572522e670e6f320bbc2122f

post_install() {
	rm -vr -- "${DESTDIR}/usr/share/doc"
}

libfswatch_package() {
	short_desc+=" - fswatch library"
	pkg_install() {
		vmove "usr/lib/libfswatch.so.*"
	}
}

libfswatch-devel_package() {
	depends="libfswatch-${version}_${revision}"
	short_desc+=" - fswatch development files"
	pkg_install() {
		vmove usr/lib/libfswatch.so
		vmove usr/include
	}
}
