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