termux-packages/packages/fossil/build.sh
2021-11-30 06:47:29 +00:00

27 lines
918 B
Bash

TERMUX_PKG_HOMEPAGE=https://www.fossil-scm.org
TERMUX_PKG_DESCRIPTION="DSCM with built-in wiki, http interface and server, tickets database"
TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_LICENSE_FILE="COPYRIGHT-BSD2.txt"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.17
TERMUX_PKG_SRCURL=https://www.fossil-scm.org/home/tarball/version-$TERMUX_PKG_VERSION/fossil-src-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=5c7f1c73f7b5e2af24e10e40f0e07391909c1230b9e284a9d548059e7f377dbf
TERMUX_PKG_DEPENDS="libsqlite, openssl, zlib"
termux_step_pre_configure() {
# Avoid mixup of flags between cross compilation
# and native build.
CC="$CC $CPPFLAGS $CFLAGS $LDFLAGS"
unset CFLAGS LDFLAGS
}
termux_step_configure() {
$TERMUX_PKG_SRCDIR/configure \
--prefix=$TERMUX_PREFIX \
--host=$TERMUX_HOST_PLATFORM \
--json \
--disable-internal-sqlite \
--with-openssl=$TERMUX_PREFIX \
--with-zlib=$TERMUX_PREFIX
}