diff --git a/srcpkgs/librsync/files/disableRuntimeTests.cmake b/srcpkgs/librsync/files/disableRuntimeTests.cmake new file mode 100644 index 0000000000..0cb13e5df5 --- /dev/null +++ b/srcpkgs/librsync/files/disableRuntimeTests.cmake @@ -0,0 +1,9 @@ +# This file was generated by CMake because it detected TRY_RUN() commands +# in crosscompiling mode. It will be overwritten by the next CMake run. +# Copy it to a safe location, set the variables to appropriate values +# and use it then to preset the CMake cache (using -C). + +set( HAVE_PRINTF_Z_EXITCODE + 0 + CACHE INTERNAL "Result from TRY_RUN" FORCE) + diff --git a/srcpkgs/librsync/template b/srcpkgs/librsync/template index 5c1b5f71d0..75b5054695 100644 --- a/srcpkgs/librsync/template +++ b/srcpkgs/librsync/template @@ -1,6 +1,6 @@ # Template file for 'librsync' pkgname=librsync -version=2.0.0 +version=2.0.1 revision=1 build_style=cmake configure_args="-DCMAKE_SYSTEM_PROCESSOR=$XBPS_TARGET_MACHINE" @@ -11,8 +11,18 @@ 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=b5c4dd114289832039397789e42d4ff0d1108ada89ce74f1999398593fae2169 +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 }