# Maintainer: twa022 _pkgname=gimp pkgname=${_pkgname}-devel pkgver=2.99.12 pkgrel=2 pkgdesc="GNU Image Manipulation Program (Development version)" arch=('i686' 'x86_64' 'armv7h' 'aarch64') url="https://www.gimp.org/" license=('GPL' 'LGPL') depends=('gtk3' 'lcms2' 'libwmf' 'icu' 'enchant' 'libgexiv2' 'librsvg' 'desktop-file-utils' 'libexif' 'libgudev' 'openjpeg2' 'poppler-glib' 'poppler-data' 'openexr' 'mypaint-brushes1' 'babl>=0.1.78' 'gegl>=0.4.38' 'cairo' 'python-gobject' 'appstream-glib' 'libxmu' 'graphviz') makedepends=('appstream' 'intltool' 'libxslt' 'glib-networking' 'alsa-lib' 'curl' 'ghostscript' 'libxpm' 'libheif' 'libwebp' 'libmng' 'iso-codes' 'aalib' 'zlib' 'libjxl' 'gjs' 'luajit' 'meson' 'gobject-introspection' 'gi-docgen' 'xorg-server-xvfb' 'vala' 'highway' 'meson') #'yelp-tools') checkdepends=('xorg-server-xvfb') optdepends=('gutenprint: for sophisticated printing only as gimp has built-in cups print support' 'alsa-lib: for MIDI event controller module' 'curl: for URI support' 'ghostscript: for postscript support' 'libxpm: XPM support' 'libheif: HEIF support' 'libjxl: JPEG XL support' 'libwebp: WebP support' 'libmng: MNG support' 'iso-codes: Language support' 'aalib: ASCII art support' 'zlib: Compression routines' 'gjs: JavaScript scripting support' 'luajit: LUA scripting support' 'lua51-lgi: LUA scripting support') conflicts=("${_pkgname}") provides=("${_pkgname}=${pkgver}") source=("https://download.gimp.org/pub/gimp/v${pkgver%.*}/${_pkgname}-${pkgver}.tar.xz" 'fix_build_with_libheif_1.13.patch::https://gitlab.gnome.org/GNOME/gimp/-/commit/a61299ddb184babca015a846c72bf3e1a57faf2a.patch' 'linux.gpl') sha256sums=('7ba1b032ea520d540e4acad3da16d8637fe693743fdb36e0121775eea569f6a3' '6b3dbe50b85ec058f652b84ad7c959319618b8f5c23a9626face074ae3256aaf' '1003bbf5fc292d0d63be44562f46506f7b2ca5729770da9d38d3bb2e8a2f36b3') prepare() { cd "${_pkgname}-${pkgver}" patch -Np1 -i ../fix_build_with_libheif_1.13.patch } build() { local meson_options=( ) arch-meson "${_pkgname}-${pkgver}" build "${meson_options[@]}" meson compile -C build } package() { meson install -C build --destdir "$pkgdir" install -Dm 644 "${srcdir}/linux.gpl" "${pkgdir}/usr/share/gimp/2.99/palettes/Linux.gpl" }