# Template file for 'fswatch'
pkgname=fswatch
version=1.18.2
revision=1
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="doxygen"
short_desc="Cross-platform file change monitor with multiple backends"
maintainer="Eloi Torrents <eloitor@duck.com>"
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=1e5ec35c0bd8f39d45cb326e85362a0472e6b6b5a65eca7934c357e54926dfeb

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
	}
}
