34 lines
1.4 KiB
Bash
34 lines
1.4 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://inkscape.org/
|
|
TERMUX_PKG_DESCRIPTION="Free and open source vector graphics editor"
|
|
TERMUX_PKG_LICENSE="GPL-3.0-or-later"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=1.1.2
|
|
TERMUX_PKG_SRCURL=https://media.inkscape.org/dl/resources/file/inkscape-${TERMUX_PKG_VERSION}.tar.xz
|
|
TERMUX_PKG_SHA256=3ffe54a06d0b25a4cd8b6eb424536ef1ed205be13443a39cd437c8c7b89b96d1
|
|
TERMUX_PKG_DEPENDS="atk, boost, double-conversion, fontconfig, freetype, gdk-pixbuf, glib, gsl, gtk3, gtkmm3, harfbuzz, libc++, libcairo, libgc, libice, libiconv, libjpeg-turbo, libpng, libpopt, libsm, libsoup, libx11, libxext, libxml2, libxslt, littlecms, pango, poppler, potrace, readline, zlib"
|
|
TERMUX_PKG_BUILD_DEPENDS="boost-headers"
|
|
TERMUX_PKG_RECOMMENDS="inkscape-extensions, inkscape-tutorials"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
-DWITH_GRAPHICS_MAGICK=OFF
|
|
-DWITH_GSPELL=OFF
|
|
-DWITH_IMAGE_MAGICK=OFF
|
|
-DWITH_LIBCDR=OFF
|
|
-DWITH_LIBVISIO=OFF
|
|
-DWITH_LIBWPG=OFF
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
CPPFLAGS+=" -DCMS_NO_REGISTER_KEYWORD"
|
|
LDFLAGS+=" -Wl,-rpath=$TERMUX_PREFIX/lib/inkscape"
|
|
}
|
|
|
|
termux_step_install_license() {
|
|
local license_file="$TERMUX_PREFIX/share/inkscape/doc/COPYING"
|
|
if [ ! -e "$license_file" ]; then
|
|
termux_error_exit "License file $license_file not found."
|
|
fi
|
|
local doc_dir="$TERMUX_PREFIX/share/doc/$TERMUX_PKG_NAME"
|
|
mkdir -p "$doc_dir"
|
|
ln -sf "$license_file" "$doc_dir"/
|
|
}
|