contrib/libappindicator-gtk3/Pkgfile

49 lines
1.8 KiB
Plaintext
Raw Normal View History

2019-08-04 16:15:50 +02:00
# 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
2019-08-30 18:05:56 +02:00
release=2
2019-08-04 16:15:50 +02:00
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
2019-08-30 18:05:56 +02:00
patch -p1 -i $SRC/gtk3.patch
2019-08-04 16:15:50 +02:00
# The next 3 patches shamelessly pinched from Arch
2019-08-30 18:05:56 +02:00
patch -p1 -i $SRC/0001-Glib.Timeout-fix.patch
patch -p1 -i $SRC/0002-Fix-mono-nunit-pkgconfig-name.patch
patch -p1 -i $SRC/0003-Fix-Mono-assemblies-directory.patch
2019-08-04 16:15:50 +02:00
# This one is also from Arch(ish), but had to be recreated best it could
2019-08-30 18:05:56 +02:00
patch -p1 -i $SRC/improved-plasma-support.patch
2019-08-04 16:15:50 +02:00
# Patch pinched from Gentoo
2019-08-30 18:05:56 +02:00
patch -p1 -i $SRC/conditional-py-bindings.patch
2019-08-04 16:15:50 +02:00
# Removed a function which had no declaration
2019-08-30 18:05:56 +02:00
patch -p1 -i $SRC/badfunction.patch
2019-08-04 16:15:50 +02:00
# Having mono or gtk-sharp installed kills this build
2019-08-30 18:05:56 +02:00
patch -p1 -i $SRC/disable-mono.patch
2019-08-04 16:15:50 +02:00
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 \
2019-08-30 18:05:56 +02:00
--disable-{gtk-doc-html,python,mono-test,static,tests} \
2019-08-04 16:15:50 +02:00
--with-gtk=3
2019-08-30 18:05:56 +02:00
#sed -e 's/DIST_SUBDIRS = vala python mono/DIST_SUBDIRS = vala/g' \
# -e 's/am__append_1 = python//g' \
# -e 's/am__append_2 = mono//g' \
# -i bindings/Makefile
2019-08-04 16:15:50 +02:00
make
make DESTDIR=$PKG -j1 install
#make DESTDIR=$PKG -j1 -C bindings/mono uninstall
}