void-packages/srcpkgs/librsync/template
2017-10-20 12:54:28 +02:00

39 lines
1,012 B
Bash

# Template file for 'librsync'
pkgname=librsync
version=2.0.1
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=6fce69041aa4fc72a21f1ab280a7299b82df2b1fa0a25d8695fd527e6752625e
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
vman doc/librsync.3
}
}