termux-packages/packages/librsync/build.sh

21 lines
929 B
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"
TERMUX_PKG_VERSION=2.0.0
TERMUX_PKG_SRCURL=https://github.com/librsync/librsync/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_FOLDERNAME=librsync-${TERMUX_PKG_VERSION}
TERMUX_PKG_DEPENDS="libbz2"
2017-01-15 13:48:05 +01:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DZLIB_INCLUDE_DIR=$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/include"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DZLIB_LIBRARY=$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/lib/libz.so"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DPERL_EXECUTABLE=`which perl`"
2016-01-21 02:04:02 +01:00
2017-01-15 13:48:05 +01:00
termux_step_pre_configure () {
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
2017-01-15 13:48:05 +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
}