38 lines
968 B
Bash
38 lines
968 B
Bash
# Template file for 'librsync'
|
|
pkgname=librsync
|
|
version=2.3.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=dbd7eb643665691bdf4009174461463737b19b4814b789baad62914cabfe4569
|
|
|
|
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"
|
|
}
|
|
}
|