void-packages/srcpkgs/librsync/template

40 lines
1.0 KiB
Bash

# Template file for 'librsync'
pkgname=librsync
version=2.3.2
revision=1
build_style=cmake
hostmakedepends="perl"
makedepends="zlib-devel bzip2-devel popt-devel"
checkdepends="which perl"
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/"
changelog="https://librsync.github.io/md_NEWS.html"
distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
checksum=ef8ce23df38d5076d25510baa2cabedffbe0af460d887d86c2413a1c2b0c676f
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"
}
}