[arch-commits] Commit in lib32-gdk-pixbuf2/repos (4 files)

Jan Steffens heftig at archlinux.org
Mon Nov 9 13:41:32 UTC 2020


    Date: Monday, November 9, 2020 @ 13:41:32
  Author: heftig
Revision: 746923

archrelease: copy trunk to multilib-staging-x86_64

Added:
  lib32-gdk-pixbuf2/repos/multilib-staging-x86_64/
  lib32-gdk-pixbuf2/repos/multilib-staging-x86_64/PKGBUILD
    (from rev 746922, lib32-gdk-pixbuf2/trunk/PKGBUILD)
  lib32-gdk-pixbuf2/repos/multilib-staging-x86_64/gdk-pixbuf-query-loaders-32.hook
    (from rev 746922, lib32-gdk-pixbuf2/trunk/gdk-pixbuf-query-loaders-32.hook)
  lib32-gdk-pixbuf2/repos/multilib-staging-x86_64/lib32-gdk-pixbuf2.install
    (from rev 746922, lib32-gdk-pixbuf2/trunk/lib32-gdk-pixbuf2.install)

----------------------------------+
 PKGBUILD                         |   54 +++++++++++++++++++++++++++++++++++++
 gdk-pixbuf-query-loaders-32.hook |   11 +++++++
 lib32-gdk-pixbuf2.install        |    3 ++
 3 files changed, 68 insertions(+)

Copied: lib32-gdk-pixbuf2/repos/multilib-staging-x86_64/PKGBUILD (from rev 746922, lib32-gdk-pixbuf2/trunk/PKGBUILD)
===================================================================
--- multilib-staging-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-staging-x86_64/PKGBUILD	2020-11-09 13:41:32 UTC (rev 746923)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+
+pkgname=lib32-gdk-pixbuf2
+pkgver=2.42.0
+pkgrel=1
+pkgdesc="An image loading library (32-bit)"
+arch=(x86_64)
+url="https://wiki.gnome.org/Projects/GdkPixbuf"
+license=(LGPL2.1)
+depends=(lib32-glib2 lib32-libpng lib32-libtiff lib32-libjpeg lib32-libx11 gdk-pixbuf2)
+makedepends=(git meson)
+provides=(libgdk_pixbuf-2.0.so)
+install=lib32-gdk-pixbuf2.install
+_commit=43ce0077ed7162a32680ff8cd9c0c91ff0afce20  # tags/2.42.0^0
+source=("git+https://gitlab.gnome.org/GNOME/gdk-pixbuf.git#commit=$_commit"
+        gdk-pixbuf-query-loaders-32.hook)
+sha256sums=('SKIP'
+            '60f0f8c2c022f9adef0902bdb4b89881e81f3388cd2e2e4830456eea10f49bae')
+
+pkgver() {
+  cd gdk-pixbuf
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd gdk-pixbuf
+}
+
+build() {
+  export CC="gcc -m32"
+  export CXX="g++ -m32"
+  export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"
+
+  arch-meson gdk-pixbuf build \
+    --libdir /usr/lib32 \
+    -D introspection=disabled \
+    -D installed_tests=false
+  meson compile -C build
+}
+
+check() {
+  meson test -C build --print-errorlogs
+}
+
+package() {
+  DESTDIR="$pkgdir" meson install -C build
+  rm -rf "$pkgdir"/usr/{include,lib,share}
+  find "$pkgdir/usr/bin" -type f -not -name gdk-pixbuf-query-loaders -delete
+  mv "$pkgdir"/usr/bin/gdk-pixbuf-query-loaders{,-32}
+  install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 *.hook
+}
+
+# vim:set ts=2 sw=2 et:

Copied: lib32-gdk-pixbuf2/repos/multilib-staging-x86_64/gdk-pixbuf-query-loaders-32.hook (from rev 746922, lib32-gdk-pixbuf2/trunk/gdk-pixbuf-query-loaders-32.hook)
===================================================================
--- multilib-staging-x86_64/gdk-pixbuf-query-loaders-32.hook	                        (rev 0)
+++ multilib-staging-x86_64/gdk-pixbuf-query-loaders-32.hook	2020-11-09 13:41:32 UTC (rev 746923)
@@ -0,0 +1,11 @@
+[Trigger]
+Type = Path
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/*.so
+
+[Action]
+Description = Probing 32-bit GDK-Pixbuf loader modules...
+When = PostTransaction
+Exec = /usr/bin/gdk-pixbuf-query-loaders-32 --update-cache

Copied: lib32-gdk-pixbuf2/repos/multilib-staging-x86_64/lib32-gdk-pixbuf2.install (from rev 746922, lib32-gdk-pixbuf2/trunk/lib32-gdk-pixbuf2.install)
===================================================================
--- multilib-staging-x86_64/lib32-gdk-pixbuf2.install	                        (rev 0)
+++ multilib-staging-x86_64/lib32-gdk-pixbuf2.install	2020-11-09 13:41:32 UTC (rev 746923)
@@ -0,0 +1,3 @@
+pre_remove() {
+    rm -f usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/loaders.cache
+}



More information about the arch-commits mailing list