termux-packages/packages/mupdf/build.sh

18 lines
757 B
Bash
Raw Normal View History

2020-01-01 19:41:12 +01:00
TERMUX_PKG_HOMEPAGE=https://mupdf.com/
TERMUX_PKG_DESCRIPTION="Lightweight PDF and XPS viewer (library)"
TERMUX_PKG_LICENSE="AGPL-V3"
TERMUX_PKG_MAINTAINER="@termux"
2020-11-22 16:02:03 +01:00
TERMUX_PKG_VERSION=1.18.0
TERMUX_PKG_REVISION=1
2020-01-01 19:41:12 +01:00
TERMUX_PKG_SRCURL=https://mupdf.com/downloads/archive/mupdf-${TERMUX_PKG_VERSION}-source.tar.xz
2020-11-22 16:02:03 +01:00
TERMUX_PKG_SHA256=592d4f6c0fba41bb954eb1a41616661b62b134d5b383e33bd45a081af5d4a59a
2020-11-22 16:08:49 +01:00
TERMUX_PKG_DEPENDS="freetype, gumbo-parser, harfbuzz, jbig2dec, libjpeg-turbo, openjpeg, zlib"
TERMUX_PKG_EXTRA_MAKE_ARGS="prefix=$TERMUX_PREFIX build=release libs shared=yes"
2020-01-01 19:41:12 +01:00
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
rm -rf thirdparty/{freeglut,freetype,harfbuzz,jbig2dec,libjpeg,openjpeg,zlib}
export USE_SYSTEM_LIBS=yes
LDFLAGS+=" -llog"
}