author | Antonio Rojas
<arojas@archlinux.org> 2022-12-18 17:16:12 UTC |
committer | Antonio Rojas
<arojas@archlinux.org> 2022-12-18 17:16:12 UTC |
parent | b6c93f938efa8c68d53c044d7b7af93db7fee2fe |
PKGBUILD | +9 | -3 |
gegl-libraw-0.21.patch | +16 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index 75d26f5..ec7a1a7 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,7 +3,7 @@ pkgname=gegl _tag='1d26feb07a7221b9d386b54bcdad963c8421e594' pkgver=0.4.40 -pkgrel=2 +pkgrel=3 pkgdesc='Graph based image processing framework' arch=('x86_64') url='https://www.gegl.org/' @@ -15,14 +15,20 @@ makedepends=('exiv2' 'ffmpeg' 'git' 'glu' 'gobject-introspection' 'intltool' 'me options=('debug') optdepends=('ffmpeg: ffmpeg plugin' 'graphviz: for gegl-introspect') -source=("git+https://gitlab.gnome.org/GNOME/gegl.git#tag=$_tag") -sha256sums=('SKIP') +source=("git+https://gitlab.gnome.org/GNOME/gegl.git#tag=$_tag" + gegl-libraw-0.21.patch) +sha256sums=('SKIP' + '16bfd56e3139dba47f4839e46d27df339a1ed9f57c63b58cb071713c5741c8c7') pkgver() { cd "${pkgname}" git describe --tags | sed 's/^GEGL_//;s/_$//;s/_/./g;s/-/+/g' } +prepare() { + patch -d $pkgname -p1 < gegl-libraw-0.21.patch # Fix build with libraw 0.21 +} + build() { mkdir -p build cd build diff --git a/gegl-libraw-0.21.patch b/gegl-libraw-0.21.patch new file mode 100644 index 0000000..d85ec33 --- /dev/null +++ b/gegl-libraw-0.21.patch @@ -0,0 +1,16 @@ +diff --git a/operations/external/raw-load.c b/operations/external/raw-load.c +index 13eb661c2..7de2e232d 100644 +--- a/operations/external/raw-load.c ++++ b/operations/external/raw-load.c +@@ -114,7 +114,11 @@ prepare (GeglOperation *operation) + g_warning ("raw-load: Error Initializing raw library"); + else + { ++#if LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(0, 21) ++ p->LibRaw->rawparams.shot_select = o->image_num; ++#else + p->LibRaw->params.shot_select = o->image_num; ++#endif + + p->LibRaw->params.aber[0] = 1.0; + p->LibRaw->params.aber[2] = 1.0;