# Maintainer : bartus # shellcheck disable=SC2034 # Contributor: Filipe Laíns (FFY00) # Contributor: Iru Cai # Contributor: Alexander Hunziker # Contributor: Alessio Biancalana # Contributor: Massimiliano Torromeo _pkgname=gegl pkgname="${_pkgname}-git" pkgver=0.4.45.r10515.401c6d30b pkgrel=1 pkgdesc="Graph based image processing framework" arch=('i686' 'x86_64') url="https://www.gegl.org" license=('GPL3' 'LGPL3') depends=('babl>=@_babl_version@' 'libspiro>=@_libspiro_version@' 'json-glib>=@_json-glib_version@' 'sdl2>=@_sdl2_version@') #'mrg' makedepends=('git' 'meson' 'intltool' 'python' 'ruby' 'luajit>=@_luajit_version@' 'libraw>=@_libraw_version@' 'openexr>=@_openexr_version@' 'ffmpeg' 'librsvg>=@_librsvg_version@' 'jasper>=@_jasper_version@' 'libtiff>=@_libtiff_version@' 'libnsgif' 'exiv2' 'libgexiv2>=@_gexiv2_version@' 'lensfun>=@_lensfun_version@' 'vala' 'python-gobject>=@_pygobject_version@' 'suitesparse' 'gobject-introspection') optdepends=('openexr: for using the openexr plugin' 'ffmpeg: for using the ffmpeg plugin' 'librsvg: for using the svg plugin' 'libtiff: tiff plugin' 'jasper: for using the jasper plugin' 'libraw: raw plugin' 'suitesparse: matting-levin plugin' 'luajit: lua plugin' 'libgexiv2: for image metadata' 'lensfun: for lens distortion' 'libnsgif: gif plugin') provides=("gegl=${pkgver%%.r*}") conflicts=('gegl') options=(!libtool) source=('git+https://gitlab.gnome.org/GNOME/gegl.git') sha512sums=('SKIP') pkgver() { cd ${srcdir}/${_pkgname} printf "%s.r%s.%s" \ $(grep -ozP "(?s)^project\('gegl'.*?version: *'\K[0-9.]*" meson.build|tr '\0' '\n') \ $(git rev-list --count HEAD) \ $(git rev-parse --short HEAD) } build() { meson "${srcdir}/${_pkgname}"\ "${srcdir}/build" \ --prefix=/usr \ -Dworkshop=true export NINJA_STATUS="[%p | %f<%r<%u | %cbps ] " ninja -C "${srcdir}/build" } package() { DESTDIR="${pkgdir}" ninja -C "${srcdir}/build" install } # vim: tabstop=2 expandtab