void-packages/srcpkgs/librsync/template

38 lines
968 B
Bash

# Template file for 'librsync'
pkgname=librsync
version=2.2.1
revision=1
build_style=cmake
hostmakedepends="perl"
makedepends="zlib-devel bzip2-devel popt-devel"
short_desc="Library that implements the rsync remote-delta algorithm (rdiff)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://librsync.sourceforge.net/"
distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
checksum=b5ab8e2092b82b7d7bb9c1dd52e6a77083a89f8ad9b9309da611f490d0b49a71
if [ "$CROSS_BUILD" ]; then
configure_args+=" -C disableRuntimeTests.cmake"
fi
pre_configure() {
if [ "$CROSS_BUILD" ]; then
mkdir -p build
cp ${FILESDIR}/disableRuntimeTests.cmake ${wrksrc}/build/.
fi
}
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
vmove "usr/share/man/man3/*.3"
}
}