git » gegl.git » commit ed24181

upgpkg: 0.4.48-3: include upstream repro patch

author Christian Heusel
2024-05-05 21:04:51 UTC
committer Christian Heusel
2024-05-05 21:04:51 UTC
parent 074dc0ae4196b88b4d96450053b72694a54d47ca

upgpkg: 0.4.48-3: include upstream repro patch

.SRCINFO +1 -1
PKGBUILD +8 -6

diff --git a/.SRCINFO b/.SRCINFO
index 0ee3b36..ff377e3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = gegl
 	pkgdesc = Graph based image processing framework
 	pkgver = 0.4.48
-	pkgrel = 2
+	pkgrel = 3
 	url = https://www.gegl.org/
 	arch = x86_64
 	license = GPL-3.0-or-later OR LGPL-3.0-or-later
diff --git a/PKGBUILD b/PKGBUILD
index 1c2ff63..ec16d3f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 
 pkgname=gegl
 pkgver=0.4.48
-pkgrel=2
+pkgrel=3
 pkgdesc='Graph based image processing framework'
 arch=('x86_64')
 url='https://www.gegl.org/'
@@ -20,6 +20,13 @@ optdepends=('ffmpeg: FFmpeg Frame Loader and FFmpeg Frame Saver plugins'
 source=("git+https://gitlab.gnome.org/GNOME/gegl.git#tag=GEGL_${pkgver//./_}")
 sha256sums=('bed1b1f0348519a175422800564c65c372b125b4230a0207342911bf07f34ded')
 
+prepare() {
+  cd "${pkgname}"
+  # https://gitlab.archlinux.org/archlinux/packaging/packages/gegl/-/issues/1
+  # https://gitlab.gnome.org/GNOME/gegl/-/issues/368
+  git cherry-pick --mainline 1 --no-commit ab6c62963dff7c7d464f4453f2f3f554221e5c16 a54105e15c9012933b5d830a32aef76f4e04290e
+}
+
 pkgver() {
   cd "${pkgname}"
   git describe --tags | sed 's/^GEGL_//;s/_$//;s/_/./g;s/-/+/g'
@@ -43,9 +50,4 @@ check() {
 package() {
   cd build
   DESTDIR="${pkgdir}" ninja install
-
-  # strip the default tile size to make the package reproducible
-  # https://gitlab.gnome.org/GNOME/gegl/-/issues/368#note_2074468
-  sed -i "/tile-cache-size/ s/default-value=\".*\"/default-value=\"\"/" "${pkgdir}/usr/share/gir-1.0/Gegl-${pkgver%.*}.gir"
-  sed -i "/Default value/ s;<td>[[:digit:]]*</td>;<td></td>;" "${pkgdir}/usr/share/doc/gegl-${pkgver%.*}/property.Config.tile-cache-size.html"
 }