void-packages/srcpkgs/fswatch/template

41 lines
1007 B
Bash

# Template file for 'fswatch'
pkgname=fswatch
version=1.13.0
revision=1
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="doxygen"
short_desc="A cross-platform file change monitor with multiple backends"
maintainer="Orphaned <orphan@voidlinux.eu>"
license="GPL-3.0-or-later"
homepage="https://emcrisostomo.github.io/fswatch/"
distfiles="https://github.com/emcrisostomo/fswatch/releases/download/${version}/fswatch-${version}.tar.gz"
checksum=90bcf0e02fa586251aa3233cb805ca4087e81de2c5960150a0676cc42f8534bb
case "$XBPS_TARGET_MACHINE" in
armv[56]*)
makedepends+=" libatomic-devel"
LDFLAGS=" -latomic"
;;
esac
post_install() {
rm -rf -- "${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
}
}