You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.1 KiB
28 lines
1.1 KiB
TERMUX_PKG_HOMEPAGE=https://github.com/librsync/librsync
|
|
TERMUX_PKG_DESCRIPTION="Remote delta-compression library"
|
|
TERMUX_PKG_LICENSE="LGPL-2.0"
|
|
TERMUX_PKG_VERSION=2.2.1
|
|
TERMUX_PKG_SRCURL=https://github.com/librsync/librsync/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=b5ab8e2092b82b7d7bb9c1dd52e6a77083a89f8ad9b9309da611f490d0b49a71
|
|
TERMUX_PKG_DEPENDS="libbz2"
|
|
TERMUX_PKG_BUILD_DEPENDS="libpopt"
|
|
TERMUX_PKG_BREAKS="librsync-dev"
|
|
TERMUX_PKG_REPLACES="librsync-dev"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DPERL_EXECUTABLE=$(which perl)"
|
|
|
|
termux_step_pre_configure() {
|
|
# Certain packages are not safe to build on device because their
|
|
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
|
if $TERMUX_ON_DEVICE_BUILD; then
|
|
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
|
fi
|
|
|
|
# Remove old files to ensure new timestamps on symlinks:
|
|
rm -Rf $TERMUX_PREFIX/lib/librsync.*
|
|
}
|
|
|
|
termux_step_post_configure() {
|
|
mkdir -p $TERMUX_PREFIX/share/man/man{1,3}
|
|
cp $TERMUX_PKG_SRCDIR/doc/rdiff.1 $TERMUX_PREFIX/share/man/man1
|
|
cp $TERMUX_PKG_SRCDIR/doc/librsync.3 $TERMUX_PREFIX/share/man/man3
|
|
}
|
|
|