git » gegl.git » commit 0992f6c

make the package reproducible

author Christian Heusel
2024-04-09 13:43:11 UTC
committer Christian Heusel
2024-04-09 14:39:29 UTC
parent 8ecc0601972128098cbdbfbbed3bd996ef2fac86

make the package reproducible

this is done by removing machine-specific information as suggested by
https://gitlab.gnome.org/GNOME/gegl/-/issues/368

fixes https://gitlab.archlinux.org/archlinux/packaging/packages/gegl/-/issues/1

PKGBUILD +5 -0

diff --git a/PKGBUILD b/PKGBUILD
index 0bbeefe..8965252 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -43,4 +43,9 @@ 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"
 }