2016-01-20 20:04:02 -05:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/librsync/librsync
|
|
|
|
TERMUX_PKG_DESCRIPTION="Remote delta-compression library"
|
2019-01-21 14:53:58 +02:00
|
|
|
TERMUX_PKG_LICENSE="LGPL-2.0"
|
2020-12-20 15:16:34 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-05-04 17:00:38 +00:00
|
|
|
TERMUX_PKG_VERSION=2.3.2
|
2016-01-20 20:04:02 -05:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/librsync/librsync/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2021-05-04 17:00:38 +00:00
|
|
|
TERMUX_PKG_SHA256=ef8ce23df38d5076d25510baa2cabedffbe0af460d887d86c2413a1c2b0c676f
|
2017-09-06 14:53:31 -07:00
|
|
|
TERMUX_PKG_DEPENDS="libbz2"
|
2019-10-18 11:32:24 +00:00
|
|
|
TERMUX_PKG_BUILD_DEPENDS="libpopt"
|
2019-07-20 11:42:33 +03:00
|
|
|
TERMUX_PKG_BREAKS="librsync-dev"
|
|
|
|
TERMUX_PKG_REPLACES="librsync-dev"
|
2019-02-12 16:41:30 +08:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DPERL_EXECUTABLE=$(which perl)"
|
2016-01-20 20:04:02 -05:00
|
|
|
|
2019-02-08 17:37:29 +08:00
|
|
|
termux_step_pre_configure() {
|
2019-08-08 15:25:54 +03:00
|
|
|
# Certain packages are not safe to build on device because their
|
|
|
|
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
2019-08-12 18:28:41 +03:00
|
|
|
if $TERMUX_ON_DEVICE_BUILD; then
|
2019-08-08 15:25:54 +03:00
|
|
|
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
|
|
|
fi
|
|
|
|
|
2016-01-20 20:04:02 -05:00
|
|
|
# Remove old files to ensure new timestamps on symlinks:
|
|
|
|
rm -Rf $TERMUX_PREFIX/lib/librsync.*
|
2017-01-15 18:18:05 +05:30
|
|
|
}
|
2016-01-20 20:04:02 -05:00
|
|
|
|
2019-02-08 17:37:29 +08:00
|
|
|
termux_step_post_configure() {
|
2016-01-20 20:04:02 -05:00
|
|
|
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
|
|
|
|
}
|