void-packages/srcpkgs/fswatch/template
2021-10-05 15:00:09 -03:00

39 lines
995 B
Bash

# Template file for 'fswatch'
pkgname=fswatch
version=1.16.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=95ece85eb01af71e99afef0173755fcedb737b639163f8efc7fed674f6f5372f
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
export LIBS=-latomic
fi
post_install() {
rm -r -- "${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
}
}