forked from ports/compat-32
42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
# Description: Library for passing menus over DBus - Common Files (32bit)
|
|
# URL: https://launchpad.net/libdbusmenu
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: glib-32 libdbusmenu-glib
|
|
|
|
name=libdbusmenu-glib-32
|
|
version=18.10
|
|
release=2
|
|
source=(http://cdn-fastly.deb.debian.org/debian/pool/main/libd/libdbusmenu/libdbusmenu_18.10.20180917~bzr492+repack1.orig.tar.xz
|
|
0001_no-deprecated-gnome-common-macros.patch
|
|
0003_port-tools-dbusmenu-bench-to-py3.patch
|
|
0004_prevent-test-json-from-failing.patch)
|
|
|
|
|
|
build() {
|
|
export HAVE_VALGRIND_TRUE='#'
|
|
export HAVE_VALGRIND_FALSE=''
|
|
|
|
cd libdbusmenu-18.10.20180917~bzr492
|
|
patch -Np1 -i $SRC/0001_no-deprecated-gnome-common-macros.patch
|
|
patch -Np1 -i $SRC/0003_port-tools-dbusmenu-bench-to-py3.patch
|
|
patch -Np1 -i $SRC/0004_prevent-test-json-from-failing.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,gtk}
|
|
make -j1
|
|
make DESTDIR=$PKG -C libdbusmenu-glib -j1 install
|
|
|
|
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
|
|
}
|