summaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk2/Pkgfile
blob: 1e9f562ef9d43587a830968476e375185b1f2aac (plain)
    1 # Description: Library for passing menus over DBus - gtk2 Files
    2 # URL: https://launchpad.net/libdbusmenu
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: graphite2 gtk json-glib libdbusmenu-glib util-linux xorg-libxdamage
    5 
    6 name=libdbusmenu-gtk2
    7 version=18.10
    8 release=2
    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   export CFLAGS+=" -O2 -Wno-error"
   18 
   19   ./autogen.sh --prefix=/usr \
   20     --sysconfdir=/etc \
   21     --libexecdir=/usr/lib/$name \
   22     --localstatedir=/var \
   23     --with-gtk=2
   24   make -j1
   25   make DESTDIR=$PKG -C libdbusmenu-glib install
   26   make DESTDIR=$PKG -C libdbusmenu-gtk install
   27   make DESTDIR=$PKG -C libdbusmenu-glib uninstall
   28 
   29   rm -fr $PKG/usr/share/doc
   30 
   31   find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
   32   | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
   33 }

Generated by cgit