void-packages/srcpkgs/librsync/template

37 lines
970 B
Bash

# Template file for 'librsync'
pkgname=librsync
version=2.0.2
revision=1
build_style=cmake
hostmakedepends="perl"
makedepends="zlib-devel bzip2-devel popt-devel"
maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://librsync.sourceforge.net/"
license="LGPL-2.1-or-later"
short_desc="A library that implements the rsync remote-delta algorithm (rdiff)"
distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
checksum=e67b9520ee84f7239be6e948795803bd95495091cc00bf6d0e8c6976032a4af1
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"
}
}