void-packages/srcpkgs/fswatch/template
2018-06-30 22:42:58 -03:00

40 lines
1,007 B
Bash

# Template file for 'fswatch'
pkgname=fswatch
version=1.12.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=8042da283b34dc383ff6321254163e378d4f3cd5d8df87ff608f811ea33e6a83
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
}
}