2019-08-04 16:15:51 +02:00
|
|
|
# Description: Library for passing menus over DBus - gtk3 Files
|
|
|
|
# URL: https://launchpad.net/libdbusmenu
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: gtk3 libdbusmenu-glib gtk json-glib
|
|
|
|
|
|
|
|
name=libdbusmenu-gtk3
|
|
|
|
version=18.10
|
2019-11-15 23:09:07 +01:00
|
|
|
release=3
|
2019-08-04 16:15:51 +02:00
|
|
|
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() {
|
|
|
|
cd libdbusmenu-18.10.20180917~bzr490
|
|
|
|
patch -Np1 -i $SRC/0001_no-deprecated-gnome-common-macros.patch
|
|
|
|
sed -e 's/gtkdocize || exit 1//g' -i autogen.sh
|
|
|
|
sed -e 's/--enable-gtk-doc//g' -i autogen.sh
|
|
|
|
sed -e 's/AM_MAINTAINER_MODE//g' -i configure.ac
|
2019-09-18 15:34:53 +02:00
|
|
|
export CFLAGS+=" -O2 -Wno-error"
|
2019-11-15 23:09:07 +01:00
|
|
|
export HAVE_VALGRIND_TRUE='#'
|
|
|
|
export HAVE_VALGRIND_FALSE=''
|
2019-08-04 16:15:51 +02:00
|
|
|
./autogen.sh --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--libexecdir=/usr/lib/$name \
|
|
|
|
--localstatedir=/var \
|
2019-11-15 23:09:07 +01:00
|
|
|
--with-gtk=3 \
|
|
|
|
--disable-{dumper,static,tests,valgrind}
|
2019-08-04 16:15:51 +02:00
|
|
|
make -j1
|
2019-11-15 23:09:07 +01:00
|
|
|
make -j1 DESTDIR=$PKG -C libdbusmenu-glib install
|
|
|
|
make -j1 DESTDIR=$PKG -C libdbusmenu-gtk install
|
|
|
|
make -j1 DESTDIR=$PKG -C libdbusmenu-glib uninstall
|
2019-08-04 16:15:51 +02:00
|
|
|
|
2019-11-15 23:09:07 +01:00
|
|
|
#rm -r $PKG/usr/share/doc
|
2019-08-04 16:15:51 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|