summaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/Pkgfile
blob: c99af316558f4efdf392952adbc386b74e9f56b5 (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 
    6 name=libdbusmenu-glib
    7 version=18.10
    8 release=1
    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   export HAVE_VALGRIND_TRUE='#'
   15   export HAVE_VALGRIND_FALSE=''
   16   patch -Np1 -i $SRC/0001_no-deprecated-gnome-common-macros.patch
   17   sed -e 's/-Werror -Wno-error=deprecated-declarations//g' -i libdbusmenu-{glib,gtk}/Makefile.am
   18   sed -e 's/gtkdocize || exit 1//g' -i autogen.sh
   19   sed -e 's/--enable-gtk-doc//g' -i autogen.sh
   20   ./autogen.sh --prefix=/usr \
   21     --sysconfdir=/etc \
   22     --libexecdir=/usr/lib/$name \
   23     --localstatedir=/var \
   24     --disable-{dumper,tests,nls,gtk}
   25   make -j1
   26   make DESTDIR=$PKG -C libdbusmenu-glib -j1 install
   27 
   28   find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
   29   | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
   30 }

Generated by cgit