termux-packages/packages/rdiff-backup/build.sh

22 lines
885 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://rdiff-backup.net
TERMUX_PKG_DESCRIPTION="A utility for local/remote mirroring and incremental backups"
TERMUX_PKG_LICENSE="GPL-2.0"
2020-03-17 14:24:06 +01:00
TERMUX_PKG_VERSION=2.0.0
TERMUX_PKG_SRCURL=https://github.com/rdiff-backup/rdiff-backup/releases/download/v${TERMUX_PKG_VERSION/\~/}/rdiff-backup-${TERMUX_PKG_VERSION/\~/}.tar.gz
2020-03-17 14:24:06 +01:00
TERMUX_PKG_SHA256=5b0e7afec624862c01acb5470da0519d8945af12819a4303a13ba82b654d8ee8
TERMUX_PKG_DEPENDS="librsync, python"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
continue
}
termux_step_make_install() {
local _PYTHON_VERSION=3.8
export PYTHONPATH=$TERMUX_PREFIX/lib/python${_PYTHON_VERSION}/site-packages
export CPPFLAGS+=" -I${TERMUX_PREFIX}/include/python${_PYTHON_VERSION}"
export LDFLAGS+=" -lpython${_PYTHON_VERSION}"
export LDSHARED="$CC -shared"
python${_PYTHON_VERSION} setup.py install --prefix=$TERMUX_PREFIX --force
}