termux-packages/packages/biber/build.sh
Henrik Grimler 7e94d3e2e7
biber: update to 2.17
And fix installation of Net::SSLeay with openssl3.  Successful
installation of biber also needs at least perl 5.34.0-4, which
includes a fix so that 'ranlib' is not undefined.  Without the fix
installation of the dependency Unicode::LineBreak fails.
2022-03-10 11:31:15 +01:00

44 lines
1.8 KiB
Bash

TERMUX_PKG_HOMEPAGE=http://biblatex-biber.sourceforge.net
TERMUX_PKG_DESCRIPTION="A Unicode-capable BibTeX replacement for biblatex users"
TERMUX_PKG_LICENSE="Artistic-License-2.0"
TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91"
TERMUX_PKG_VERSION=2.17
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_DEPENDS="perl (>> 5.34.0-3), libxslt, libxml2 (>> 2.9.10-3), openssl-tool, make, clang, pkg-config"
EXTUTILS_LIBBUILDER_VERSION=0.08
TEXT_BIBTEX_VERSION=0.88
# Build from latest Net::SSLeay version to get openssl3 compatibility,
# should be fixed in release 1.93.
NET_SSLEAY_VERSION=281c44cd31002d355a9cbfaa339c90ef035e5f90
termux_step_make_install() {
mkdir -p $TERMUX_PREFIX/opt/biber
sed -e "s|@TERMUX_PREFIX@|${TERMUX_PREFIX}|g" \
-e "s|@TEXT_BIBTEX_VERSION@|${TEXT_BIBTEX_VERSION}|g" \
-e "s|@EXTUTILS_LIBBUILDER_VERSION@|${EXTUTILS_LIBBUILDER_VERSION}|g" \
-e "s|@NET_SSLEAY_VERSION@|${NET_SSLEAY_VERSION}|g" \
-e "s|@BIBER_VERSION@|${TERMUX_PKG_VERSION}|g" \
"$TERMUX_PKG_BUILDER_DIR"/installer.sh \
> $TERMUX_PREFIX/bin/termux-install-biber
chmod 700 $TERMUX_PREFIX/bin/termux-install-biber
install -m600 "$TERMUX_PKG_BUILDER_DIR"/ExtUtils-LibBuilder.diff $TERMUX_PREFIX/opt/biber/
install -m600 "$TERMUX_PKG_BUILDER_DIR"/Text-BibTeX.diff $TERMUX_PREFIX/opt/biber/
install -m600 "$TERMUX_PKG_BUILDER_DIR"/Net-SSLeay.diff $TERMUX_PREFIX/opt/biber/
# Uninstalling all dependencies on uninstall would be annoying, so
# lets leave that for the user to deal with..
}
termux_step_create_debscripts() {
{
echo "#!$TERMUX_PREFIX/bin/sh"
echo "echo ''"
echo "echo '[*] You can now run the biber installer by running'"
echo "echo ''"
echo "echo ' termux-install-biber'"
echo "echo ''"
echo "echo ' The installation will take a while.'"
} > ./postinst
}