void-packages/srcpkgs/fswatch/template

40 lines
1,008 B
Bash

# Template file for 'fswatch'
pkgname=fswatch
version=1.14.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.org>"
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=44d5707adc0e46d901ba95a5dc35c5cc282bd6f331fcf9dbf9fad4af0ed5b29d
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
}
}