forked from ports/contrib
45 lines
1.7 KiB
Plaintext
45 lines
1.7 KiB
Plaintext
|
# Description: Allow applications to extend a menu via Ayatana indicators in Unity, KDE or Systray
|
||
|
# URL: https://launchpad.net/libappindicator
|
||
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||
|
# Depends on: libdbusmenu-gtk3 libindicator-gtk3 dbus-glib
|
||
|
|
||
|
name=libappindicator-gtk3
|
||
|
version=16.10
|
||
|
release=1
|
||
|
source=(http://unrealize.co.uk/source/libappindicator-16.10.tar.gz
|
||
|
0001-Glib.Timeout-fix.patch 0002-Fix-mono-nunit-pkgconfig-name.patch 0003-Fix-Mono-assemblies-directory.patch badfunction.patch conditional-py-bindings.patch disable-mono.patch gtk3.patch improved-plasma-support.patch vala-inherit.patch)
|
||
|
|
||
|
build() {
|
||
|
cd libappindicator-$version
|
||
|
patch -p1 --verbose < ../gtk3.patch
|
||
|
|
||
|
# The next 3 patches shamelessly pinched from Arch
|
||
|
patch -p1 --verbose < ../0001-Glib.Timeout-fix.patch
|
||
|
patch -p1 --verbose < ../0002-Fix-mono-nunit-pkgconfig-name.patch
|
||
|
patch -p1 --verbose < ../0003-Fix-Mono-assemblies-directory.patch
|
||
|
|
||
|
# This one is also from Arch(ish), but had to be recreated best it could
|
||
|
patch -p1 --verbose < ../improved-plasma-support.patch
|
||
|
|
||
|
# Patch pinched from Gentoo
|
||
|
patch -p1 --verbose < ../conditional-py-bindings.patch
|
||
|
|
||
|
# Removed a function which had no declaration
|
||
|
patch -p1 --verbose < ../badfunction.patch
|
||
|
|
||
|
# Having mono or gtk-sharp installed kills this build
|
||
|
patch -p1 --verbose < ../disable-mono.patch
|
||
|
|
||
|
sed -i -e 's/ -Werror//' src/Makefile.am
|
||
|
sed -e 's/--enable-gtk-doc//g' -i autogen.sh
|
||
|
NOCONFIGURE=1 ./autogen.sh
|
||
|
CXXFLAGS="$CXXFLAGS -std=c++11" \
|
||
|
./configure --prefix=/usr \
|
||
|
--localstatedir=/var \
|
||
|
--disable-{gtk-doc-html,mono-test,static,tests} \
|
||
|
--with-gtk=3
|
||
|
make
|
||
|
make DESTDIR=$PKG -j1 install
|
||
|
#make DESTDIR=$PKG -j1 -C bindings/mono uninstall
|
||
|
}
|