From 8f1e93cde9bb54c116eda0e99a1ec10c47d3d86c Mon Sep 17 00:00:00 2001 From: kth5 Date: Mon, 4 Sep 2023 13:44:55 +0200 Subject: [PATCH] * add gegl --- gegl/PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 gegl/PKGBUILD diff --git a/gegl/PKGBUILD b/gegl/PKGBUILD new file mode 100644 index 0000000000..ef58c0241e --- /dev/null +++ b/gegl/PKGBUILD @@ -0,0 +1,48 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Daniel Isenmann + +pkgname=gegl +_tag='c7cd8520066a05c9502dfc93a39e97a9546dc824' +pkgver=0.4.46 +pkgrel=2 +pkgdesc='Graph based image processing framework' +arch=(x86_64 powerpc64le powerpc64 powerpc riscv64) +url='https://www.gegl.org/' +license=('GPL3' 'LGPL3') +depends=('babl' 'cairo' 'gcc-libs' 'gdk-pixbuf2' 'glib2' 'glibc' 'jasper' 'json-glib' 'lcms2' + 'lensfun' 'libjpeg-turbo' 'libpng' 'libraw' 'librsvg' 'libspiro' 'libtiff' 'libwebp' + 'lua' 'openexr' 'pango' 'poppler-glib' 'suitesparse') +makedepends=('ffmpeg' 'git' 'gobject-introspection' 'libgexiv2' 'meson' 'python-gobject' 'sdl2' + 'vala') +optdepends=('ffmpeg: FFmpeg Frame Loader and FFmpeg Frame Saver plugins' + 'graphviz: for gegl-introspect' + 'sdl2: SDL2 Display plugin') +# TODO(gromit): switch this back to the gnome gitlab on next build +source=("git+https://github.com/GNOME/gegl.git#tag=$_tag") +sha256sums=('SKIP') + +pkgver() { + cd "${pkgname}" + git describe --tags | sed 's/^GEGL_//;s/_$//;s/_/./g;s/-/+/g' +} + +build() { + mkdir -p build + cd build + arch-meson ../"${pkgname}" \ + -Dworkshop=true \ + -Dmrg=disabled \ + -Dmaxflow=disabled \ + -Dlua=disabled + ninja +} + +check() { + cd build + ninja test || : +} + +package() { + cd build + DESTDIR="${pkgdir}" ninja install +}