From 31aa2d2056463a1ac0d1bf19e037ca123f07c246 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Sun, 1 May 2022 17:15:21 +0900 Subject: [PATCH] new package: gimp --- scripts/setup-ubuntu.sh | 3 +++ x11-packages/gimp/build.sh | 26 +++++++++++++++++++++++ x11-packages/gimp/gimp-data.subpackage.sh | 3 +++ 3 files changed, 32 insertions(+) create mode 100644 x11-packages/gimp/build.sh create mode 100644 x11-packages/gimp/gimp-data.subpackage.sh diff --git a/scripts/setup-ubuntu.sh b/scripts/setup-ubuntu.sh index e5ae8917e..847b932e0 100755 --- a/scripts/setup-ubuntu.sh +++ b/scripts/setup-ubuntu.sh @@ -77,6 +77,9 @@ PACKAGES+=" valac" # Needed by package libgcrypt. PACKAGES+=" fig2dev" +# Needed by package gimp. +PACKAGES+=" gegl" + # Needed by package libidn2. PACKAGES+=" gengetopt" diff --git a/x11-packages/gimp/build.sh b/x11-packages/gimp/build.sh new file mode 100644 index 000000000..5e1d46d72 --- /dev/null +++ b/x11-packages/gimp/build.sh @@ -0,0 +1,26 @@ +TERMUX_PKG_HOMEPAGE=https://www.gimp.org/ +TERMUX_PKG_DESCRIPTION="GNU Image Manipulation Program" +TERMUX_PKG_LICENSE="GPL-3.0, LGPL-3.0" +TERMUX_PKG_MAINTAINER="@termux" +_MAJOR_VERSION=2.10 +TERMUX_PKG_VERSION=${_MAJOR_VERSION}.30 +TERMUX_PKG_SRCURL=https://download.gimp.org/mirror/pub/gimp/v${_MAJOR_VERSION}/gimp-${TERMUX_PKG_VERSION}.tar.bz2 +TERMUX_PKG_SHA256=88815daa76ed7d4277eeb353358bafa116cd2fcd2c861d95b95135c1d52b67dc +TERMUX_PKG_DEPENDS="aalib, atk, babl, fontconfig, freetype, gdk-pixbuf, gegl, gexiv2, ghostscript, gimp-data, glib, glib-networking, gtk2, harfbuzz, hicolor-icon-theme, json-glib, libandroid-shmem, libc++, libcairo, libheif, libjpeg-turbo, libmypaint, libpng, librsvg, libtiff, libwebp, libxcursor, libxml2, libxpm, libxslt, littlecms, mypaint-brushes, openexr2, openjpeg, pango, poppler, poppler-data, zlib" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" +--disable-python +ac_cv_func_bind_textdomain_codeset=yes +ac_cv_path_GEGL=/usr/bin/gegl +HOST_GLIB_COMPILE_RESOURCES=glib-compile-resources +" + +termux_step_pre_configure() { + LDFLAGS+=" -landroid-shmem" + + local pc_dir=$TERMUX_PKG_BUILDDIR/_pkgconfig + mkdir -p $pc_dir + ln -sf $TERMUX_PREFIX/share/pkgconfig/mypaint-brushes-2.0.pc \ + $pc_dir/mypaint-brushes-1.0.pc + ln -sf $TERMUX_PREFIX/share/pkgconfig/poppler-data.pc $pc_dir/ + export PKG_CONFIG_PATH=$pc_dir +} diff --git a/x11-packages/gimp/gimp-data.subpackage.sh b/x11-packages/gimp/gimp-data.subpackage.sh new file mode 100644 index 000000000..c60106fb1 --- /dev/null +++ b/x11-packages/gimp/gimp-data.subpackage.sh @@ -0,0 +1,3 @@ +TERMUX_SUBPKG_DESCRIPTION="Platform-independent data for gimp" +TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true +TERMUX_SUBPKG_INCLUDE="share/gimp/"