termux-packages/packages/dar/build.sh

19 lines
742 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=http://dar.linux.free.fr/
TERMUX_PKG_DESCRIPTION="A full featured command-line backup tool, short for Disk ARchive"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
2021-05-03 21:02:41 +02:00
TERMUX_PKG_VERSION=2.7.0
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/dar/dar/${TERMUX_PKG_VERSION}/dar-${TERMUX_PKG_VERSION}.tar.gz
2021-05-03 21:02:41 +02:00
TERMUX_PKG_SHA256=689a8d8b68d9260426ab420e6db01765c98adafbd678fbc7114b70f0eda7070a
TERMUX_PKG_DEPENDS="attr, libbz2, libgcrypt, liblzma, liblzo, zlib"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
if [ "$TERMUX_ARCH_BITS" = "32" ]; then
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-mode=32"
else
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-mode=64"
fi
CXXFLAGS+=" $CPPFLAGS"
}