blob: 0b3685cdd8af89cbfdea78cff34aa158f5a5ee60 (
plain)
1 # Description: Library for passing menus over DBus - gtk3 Files
2 # URL: https://launchpad.net/libdbusmenu
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: gtk3 libdbusmenu-glib gtk json-glib
5
6 name=libdbusmenu-gtk3
7 version=18.10
8 release=3
9 source=(http://cdn-fastly.deb.debian.org/debian/pool/main/libd/libdbusmenu/libdbusmenu_18.10.20180917~bzr490+repack1.orig.tar.xz
10 0001_no-deprecated-gnome-common-macros.patch)
11
12 build() {
13 cd libdbusmenu-18.10.20180917~bzr490
14 patch -Np1 -i $SRC/0001_no-deprecated-gnome-common-macros.patch
15 sed -e 's/gtkdocize || exit 1//g' -i autogen.sh
16 sed -e 's/--enable-gtk-doc//g' -i autogen.sh
17 sed -e 's/AM_MAINTAINER_MODE//g' -i configure.ac
18 export CFLAGS+=" -O2 -Wno-error"
19 export HAVE_VALGRIND_TRUE='#'
20 export HAVE_VALGRIND_FALSE=''
21 ./autogen.sh --prefix=/usr \
22 --sysconfdir=/etc \
23 --libexecdir=/usr/lib/$name \
24 --localstatedir=/var \
25 --with-gtk=3 \
26 --disable-{dumper,static,tests,valgrind}
27 make -j1
28 make -j1 DESTDIR=$PKG -C libdbusmenu-glib install
29 make -j1 DESTDIR=$PKG -C libdbusmenu-gtk install
30 make -j1 DESTDIR=$PKG -C libdbusmenu-glib uninstall
31
32 #rm -r $PKG/usr/share/doc
33
34 find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
35 | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
36 }
|