| 1 | TERMUX_PKG_HOMEPAGE=https://github.com/librsync/librsync |
| 2 | TERMUX_PKG_DESCRIPTION="Remote delta-compression library" |
| 3 | TERMUX_PKG_VERSION=2.0.0 |
| 4 | TERMUX_PKG_SRCURL=https://github.com/librsync/librsync/archive/v${TERMUX_PKG_VERSION}.tar.gz |
| 5 | TERMUX_PKG_FOLDERNAME=librsync-${TERMUX_PKG_VERSION} |
| 6 | TERMUX_PKG_DEPENDS="libbz2" |
| 7 | |
| 8 | termux_step_pre_configure () { |
| 9 | # Remove old files to ensure new timestamps on symlinks: |
| 10 | rm -Rf $TERMUX_PREFIX/lib/librsync.* |
| 11 | } |
| 12 | |
| 13 | termux_step_post_configure () { |
| 14 | mkdir -p $TERMUX_PREFIX/share/man/man{1,3} |
| 15 | cp $TERMUX_PKG_SRCDIR/doc/rdiff.1 $TERMUX_PREFIX/share/man/man1 |
| 16 | cp $TERMUX_PKG_SRCDIR/doc/librsync.3 $TERMUX_PREFIX/share/man/man3 |
| 17 | } |