# Template file for 'librsync'
pkgname=librsync
version=2.0.0
revision=1
build_style=cmake
configure_args="-DCMAKE_SYSTEM_PROCESSOR=$XBPS_TARGET_MACHINE"
hostmakedepends="perl"
makedepends="zlib-devel bzip2-devel popt-devel"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://librsync.sourceforge.net/"
license="LGPL-2.1"
short_desc="A library that implements the rsync remote-delta algorithm (rdiff)"
distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
checksum=b5c4dd114289832039397789e42d4ff0d1108ada89ce74f1999398593fae2169

post_install() {
	vman doc/rdiff.1
}

librsync-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}-${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/*.so
		vman doc/librsync.3
	}
}
