diff options
author | Tim Biermann <tbier@posteo.de> | 2019-08-04 16:15:50 +0200 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2019-08-04 16:15:50 +0200 |
commit | bebe1d8839f073eb608cefac7cb4a28d01529ee3 (patch) | |
tree | 4a6492323bac00f32304b75205995ed54ea4fc1c /libappindicator-python/Pkgfile | |
parent | 397214e2a45b11ad7b2f3f274524aca80e8e0547 (diff) | |
download | contrib-bebe1d8839f073eb608cefac7cb4a28d01529ee3.tar.gz contrib-bebe1d8839f073eb608cefac7cb4a28d01529ee3.tar.xz |
libappindicator-python: initial commit
Diffstat (limited to 'libappindicator-python/Pkgfile')
-rw-r--r-- | libappindicator-python/Pkgfile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libappindicator-python/Pkgfile b/libappindicator-python/Pkgfile new file mode 100644 index 000000000..bd7b9466c --- /dev/null +++ b/libappindicator-python/Pkgfile @@ -0,0 +1,38 @@ +# 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: libappindicator-gtk2 python + +name=libappindicator-python +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 + # 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 + + sed -i -e 's/ -Werror//' src/Makefile.am + NOCONFIGURE=1 ./autogen.sh + export CSC='/usr/bin/mcs' + CXXFLAGS="$CXXFLAGS -std=c++11" \ + ./configure --prefix=/usr \ + --localstatedir=/var \ + --disable-{gtk-doc-html,mono-test,static,tests} \ + --with-gtk=2 + make + make DESTDIR=$PKG -j1 -C bindings/python install +} |