# Template file for 'inotify-tools'
pkgname=inotify-tools
version=3.20.2.2
revision=2
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="Provides a simple interface to inotify"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/rvoicilas/inotify-tools"
distfiles="https://github.com/rvoicilas/${pkgname}/archive/${version}.tar.gz"
checksum=770fb1d94ace659f975d7494e3ab8b421a6aab930b9c37c7c290ab5280abb7b8

pre_configure() {
	touch README
	autoreconf -i
}

libinotify-tools_package() {
	short_desc+=" - library files"
	pkg_install() {
		vmove "usr/lib/*.so.*"
	}
}

inotify-tools-devel_package() {
	depends="libinotify-tools>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
	}
}
