# Template file for 'lsyncd'
pkgname=lsyncd
version=2.3.1
revision=1
build_style=cmake
hostmakedepends="asciidoc lua53"
makedepends="lua53-devel"
depends="rsync"
short_desc="Syncing Daemon that synchronizes local directories with remote targets"
maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/axkibe/lsyncd"
distfiles="https://github.com/axkibe/lsyncd/archive/release-${version}.tar.gz"
checksum=fc19a77b2258dc6dbb16a74f023de7cd62451c26984cedbec63e20ff22bcbdd8

post_install() {
	vman docs/manpage/lsyncd.1
	# docs are installed on the wrong path
	rm -r "${DESTDIR}"/man1
	vmkdir /usr/share/examples
	mv "${DESTDIR}"/usr/doc/examples "${DESTDIR}"/usr/share/examples/lsyncd
	vsv lsyncd
}
