termux-packages/packages/librsync/build.sh

30 lines
1.1 KiB
Bash
Raw Normal View History

2016-01-21 02:04:02 +01:00
TERMUX_PKG_HOMEPAGE=https://github.com/librsync/librsync
TERMUX_PKG_DESCRIPTION="Remote delta-compression library"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="LGPL-2.0"
2018-03-01 15:28:31 +01:00
TERMUX_PKG_VERSION=2.0.2
TERMUX_PKG_REVISION=2
2018-03-01 15:28:31 +01:00
TERMUX_PKG_SHA256=e67b9520ee84f7239be6e948795803bd95495091cc00bf6d0e8c6976032a4af1
2016-01-21 02:04:02 +01:00
TERMUX_PKG_SRCURL=https://github.com/librsync/librsync/archive/v${TERMUX_PKG_VERSION}.tar.gz
2017-09-06 23:53:31 +02:00
TERMUX_PKG_DEPENDS="libbz2"
TERMUX_PKG_BREAKS="librsync-dev"
TERMUX_PKG_REPLACES="librsync-dev"
2017-09-06 23:53:31 +02:00
TERMUX_PKG_BUILD_DEPENDS="libpopt"
2019-02-12 09:41:30 +01:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DPERL_EXECUTABLE=$(which perl)"
2016-01-21 02:04:02 +01:00
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 [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
fi
2016-01-21 02:04:02 +01:00
# Remove old files to ensure new timestamps on symlinks:
rm -Rf $TERMUX_PREFIX/lib/librsync.*
2017-01-15 13:48:05 +01:00
}
2016-01-21 02:04:02 +01:00
termux_step_post_configure() {
2016-01-21 02:04:02 +01: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
}