contrib/libdbusmenu-gtk2/Pkgfile

34 lines
1.2 KiB
Plaintext

# Description: Library for passing menus over DBus - gtk2 Files
# URL: https://launchpad.net/libdbusmenu
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: graphite2 gtk json-glib libdbusmenu-glib util-linux xorg-libxdamage
name=libdbusmenu-gtk2
version=18.10
release=2
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
export CFLAGS+=" -O2 -Wno-error"
./autogen.sh --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/$name \
--localstatedir=/var \
--with-gtk=2
make -j1
make DESTDIR=$PKG -C libdbusmenu-glib install
make DESTDIR=$PKG -C libdbusmenu-gtk install
make DESTDIR=$PKG -C libdbusmenu-glib uninstall
rm -fr $PKG/usr/share/doc
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
}