From 79efd328b1ebaa5ebdca41f19be096119acb0a7b Mon Sep 17 00:00:00 2001 From: Danny Rawlins Date: Tue, 27 Aug 2019 00:01:02 +1000 Subject: [PATCH] libdbusmenu-gtk2-32: initial import --- libdbusmenu-gtk2-32/.32bit | 0 libdbusmenu-gtk2-32/.footprint | 11 ++++++ libdbusmenu-gtk2-32/.signature | 6 +++ ...01_no-deprecated-gnome-common-macros.patch | 12 ++++++ libdbusmenu-gtk2-32/Pkgfile | 37 +++++++++++++++++++ 5 files changed, 66 insertions(+) create mode 100644 libdbusmenu-gtk2-32/.32bit create mode 100644 libdbusmenu-gtk2-32/.footprint create mode 100644 libdbusmenu-gtk2-32/.signature create mode 100644 libdbusmenu-gtk2-32/0001_no-deprecated-gnome-common-macros.patch create mode 100644 libdbusmenu-gtk2-32/Pkgfile diff --git a/libdbusmenu-gtk2-32/.32bit b/libdbusmenu-gtk2-32/.32bit new file mode 100644 index 00000000..e69de29b diff --git a/libdbusmenu-gtk2-32/.footprint b/libdbusmenu-gtk2-32/.footprint new file mode 100644 index 00000000..96f36154 --- /dev/null +++ b/libdbusmenu-gtk2-32/.footprint @@ -0,0 +1,11 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib32/ +-rw-r--r-- root/root usr/lib32/libdbusmenu-gtk.a +-rwxr-xr-x root/root usr/lib32/libdbusmenu-gtk.la +lrwxrwxrwx root/root usr/lib32/libdbusmenu-gtk.so -> libdbusmenu-gtk.so.4.0.12 +lrwxrwxrwx root/root usr/lib32/libdbusmenu-gtk.so.4 -> libdbusmenu-gtk.so.4.0.12 +-rwxr-xr-x root/root usr/lib32/libdbusmenu-gtk.so.4.0.12 +drwxr-xr-x root/root usr/lib32/libdbusmenu-gtk2-32/ +-rwxr-xr-x root/root usr/lib32/libdbusmenu-gtk2-32/dbusmenu-bench +drwxr-xr-x root/root usr/lib32/pkgconfig/ +-rw-r--r-- root/root usr/lib32/pkgconfig/dbusmenu-gtk-0.4.pc diff --git a/libdbusmenu-gtk2-32/.signature b/libdbusmenu-gtk2-32/.signature new file mode 100644 index 00000000..2d4d6d40 --- /dev/null +++ b/libdbusmenu-gtk2-32/.signature @@ -0,0 +1,6 @@ +untrusted comment: verify with /etc/ports/compat-32.pub +RWSwxGo/zH7eXVH1msgOj6KUjB6G0cHQr7vttfpIt2oFc24jtl6o0zLVTIDRU0UVw3avGMnNMRwsDc2P/kSdpGmjGnLoGZiQeQs= +SHA256 (Pkgfile) = 42d3d7cdece610507bd24ef77c0cc34791a55eadf31db6b0830ab179afde1809 +SHA256 (.footprint) = e07a60f85539724566166f2f51bb0a7a25fa3ca71c1e45155bc8592f19f17ab3 +SHA256 (libdbusmenu_18.10.20180917~bzr490+repack1.orig.tar.xz) = f670bc86ea5ae1488b2405f371ceb870ce353127578f9b0aed2862cbbc42053b +SHA256 (0001_no-deprecated-gnome-common-macros.patch) = a65626ad3dd26a81037332d881736587929c7f8935cd34d2fc3e7f4a988d5a72 diff --git a/libdbusmenu-gtk2-32/0001_no-deprecated-gnome-common-macros.patch b/libdbusmenu-gtk2-32/0001_no-deprecated-gnome-common-macros.patch new file mode 100644 index 00000000..fbe7ca33 --- /dev/null +++ b/libdbusmenu-gtk2-32/0001_no-deprecated-gnome-common-macros.patch @@ -0,0 +1,12 @@ +Description: Drop deprecated gnome-common variables. +Author: Mike Gabriel + +--- a/autogen.sh ++++ b/autogen.sh +@@ -9,6 +9,4 @@ + + gtkdocize || exit 1 + +-USE_GNOME2_MACROS=1 \ +-USE_COMMON_DOC_BUILD=yes \ + gnome-autogen.sh --enable-gtk-doc $@ diff --git a/libdbusmenu-gtk2-32/Pkgfile b/libdbusmenu-gtk2-32/Pkgfile new file mode 100644 index 00000000..708edbbd --- /dev/null +++ b/libdbusmenu-gtk2-32/Pkgfile @@ -0,0 +1,37 @@ +# Description: Library for passing menus over DBus - Common Files +# URL: https://launchpad.net/libdbusmenu +# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu +# Depends on: gtk-32 libdbusmenu-glib-32 libdbusmenu-gtk2 xorg-libxdamage-32 + +name=libdbusmenu-gtk2-32 +version=18.10 +release=1 +source=(http://cdn-fastly.deb.debian.org/debian/pool/main/libd/libdbusmenu/libdbusmenu_18.10.20180917~bzr490+repack1.orig.tar.xz + 0001_no-deprecated-gnome-common-macros.patch) + +build() { + export PKG_CONFIG_LIBDIR='/usr/lib32/pkgconfig:/usr/share/pkgconfig' + export HAVE_VALGRIND_TRUE='#' + export HAVE_VALGRIND_FALSE='' + + cd libdbusmenu-18.10.20180917~bzr490 + patch -Np1 -i $SRC/0001_no-deprecated-gnome-common-macros.patch + sed -e 's/-Werror -Wno-error=deprecated-declarations//g' -i libdbusmenu-{glib,gtk}/Makefile.am + sed -e 's/gtkdocize || exit 1//g' -i autogen.sh + sed -e 's/--enable-gtk-doc//g' -i autogen.sh + ./autogen.sh --prefix=/usr \ + --sysconfdir=/etc \ + --libdir=/usr/lib32 \ + --libexecdir=/usr/lib32/$name \ + --localstatedir=/var \ + --disable-{dumper,tests,vala,nls} \ + --with-gtk=2 + make -j1 + make DESTDIR=$PKG -j1 install + make DESTDIR=$PKG -C libdbusmenu-glib -j1 uninstall + +# mv $PKG/usr/lib/girepository-1.0 $PKG/usr/lib32 + rm -fr $PKG/usr/{lib,include,share} + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +}