Date: Saturday, October 1, 2016 @ 15:20:57 Author: anthraxx Revision: 191151
addpkg: libappindicator 12.10.0-11 Added: libappindicator/ libappindicator/repos/ libappindicator/trunk/ libappindicator/trunk/PKGBUILD libappindicator/trunk/improved-plasma.patch libappindicator/trunk/no-python.patch -----------------------+ PKGBUILD | 96 ++++++++++++++++++++++++++++++++++++++++++++++++ improved-plasma.patch | 59 +++++++++++++++++++++++++++++ no-python.patch | 81 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 236 insertions(+) Added: libappindicator/trunk/PKGBUILD =================================================================== --- libappindicator/trunk/PKGBUILD (rev 0) +++ libappindicator/trunk/PKGBUILD 2016-10-01 15:20:57 UTC (rev 191151) @@ -0,0 +1,96 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Llewelyn Trahaearn <WoefulDerelict at GMail dot com> +# Contributor: FadeMind <fademind at gmail dot com> +# Contributor: Maxime Gauduin <alucryd at archlinux dot org> +# Contributor: bitwave <aur at oomlu dot de> +# Contributor: willemw <willemw12 at gmail dot com> +# Contributor: Balló György <ballogyor+arch at gmail dot com> + +pkgbase=libappindicator +pkgname=("${pkgbase}-gtk"{2,3} "${pkgbase}-sharp") +pkgver=12.10.0 +pkgrel=11 +pkgdesc='Allow applications to extend a menu via Ayatana indicators in Unity, KDE or Systray' +url='https://launchpad.net/libappindicator' +arch=('i686' 'x86_64') +license=('LGPL2.1' 'LGPL3') +makedepends=('dbus-glib' 'gobject-introspection' 'gtk-sharp-2' + 'libdbusmenu-gtk'{2,3} 'libindicator-gtk'{2,3} + 'mono' 'perl-xml-libxml' 'pygtk' 'vala' 'pkg-config') +options=('!emptydirs') +source=(http://launchpad.net/${pkgbase}/${pkgver%.*}/${pkgver}/+download/${pkgbase}-${pkgver}.tar.gz{,.asc} + improved-plasma.patch + no-python.patch) +sha512sums=('317a22a23c8ed84e74207b64b2e9683992d1fb7208176637a051dfe925974f966d1cfa31e650b45eaf839ab61641dee8fbebc8a07882a09b0dd766d88b8d5b9a' + 'SKIP' + 'e2930b9942b800a7a14faf4c27d59073c166e24bb1675f8604a0b5ac3fbd101f3642f7221bc8f5219231c8f021a2a8c4aa203f971ea5f2f9225be83d807cb80e' + '891f5097c607770428460fe902214c70fb2a11de9fe1e6d6109ea859b22eda3d7057cab4c5b5444de5f6f3149348c186034dcde8f95c77800bcbd8abcdf7277b') +validpgpkeys=('6FC05581A37D71FCECE165DB5BE41E162CD6358E') # Charles Kerr <charles.k...@canonical.com> + +prepare() { + (cd ${pkgbase}-${pkgver} + sed 's|/cli/|/mono/|' -i bindings/mono/{appindicator-sharp-0.1.pc.in,Makefile.in} + sed 's/example //g' -i Makefile.in + patch -p1 < "${srcdir}/no-python.patch" + patch -p1 < "${srcdir}/improved-plasma.patch" + ) + cp -ra ${pkgbase}-${pkgver}{,-gtk2} +} + +build() { + export CFLAGS="${CFLAGS} -Wno-deprecated-declarations" + export CSC='/usr/bin/mcs' + + msg2 'Building gtk3...' + (cd ${pkgbase}-${pkgver} + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-{gtk-doc-html,mono-test,static,tests} \ + --with-gtk=3 + make + ) + + msg2 'Building gtk2...' + (cd ${pkgbase}-${pkgver}-gtk2 + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-{gtk-doc-html,mono-test,static,tests} \ + --with-gtk=2 + make + ) +} + +package_libappindicator-gtk2() { + pkgdesc+=' (GTK+ 2 library)' + depends=('libdbusmenu-gtk2' 'libindicator-gtk2') + provides=("${pkgbase}") + conflicts=("${pkgbase}") + + cd ${pkgbase}-${pkgver}-gtk2 + make -j1 DESTDIR="${pkgdir}" install + make -j1 -C bindings/mono DESTDIR="${pkgdir}" uninstall + rm -rf "${pkgdir}"/usr/share/gtk-doc +} + +package_libappindicator-gtk3() { + pkgdesc+=' (GTK+ 3 library)' + depends=('libdbusmenu-gtk3' 'libindicator-gtk3') + provides=("${pkgbase}3") + conflicts=("${pkgbase}3") + + cd ${pkgbase}-${pkgver} + make -j1 DESTDIR="${pkgdir}" install + make -j1 -C bindings/mono DESTDIR="${pkgdir}" uninstall + rm -rf "${pkgdir}"/usr/share/gtk-doc +} + +package_libappindicator-sharp() { + depends=("${pkgbase}-gtk2" 'gtk-sharp-2') + + cd ${pkgbase}-${pkgver}-gtk2 + make -j1 -C bindings/mono DESTDIR="${pkgdir}" install +} + +# vim: ts=2 sw=2 et: Added: libappindicator/trunk/improved-plasma.patch =================================================================== --- libappindicator/trunk/improved-plasma.patch (rev 0) +++ libappindicator/trunk/improved-plasma.patch 2016-10-01 15:20:57 UTC (rev 191151) @@ -0,0 +1,59 @@ +From c38d64aa3c12bea271d331b6c52a1130ca758a69 Mon Sep 17 00:00:00 2001 +From: Sebastian Krzyszkowiak <d...@dosowisko.net> +Date: Sun, 12 Jul 2015 16:25:07 +0200 +Subject: [PATCH] Add support for Activate method for improved Plasma 5 user + experience + +--- + src/app-indicator.c | 3 ++- + src/gen-notification-item.xml.c | 4 ++++ + src/notification-item.xml | 4 ++++ + 3 files changed, 10 insertions(+), 1 deletion(-) + +diff --git a/src/app-indicator.c b/src/app-indicator.c +index 2e98b48..14be69f 100644 +--- a/src/app-indicator.c ++++ b/src/app-indicator.c +@@ -1082,7 +1082,8 @@ bus_method_call (GDBusConnection * connection, const gchar * sender, + delta = ABS(delta); + g_signal_emit(app, signals[SCROLL_EVENT], 0, delta, direction); + +- } else if (g_strcmp0(method, "SecondaryActivate") == 0 || ++ } else if (g_strcmp0(method, "Activate") == 0 || ++ g_strcmp0(method, "SecondaryActivate") == 0 || + g_strcmp0(method, "XAyatanaSecondaryActivate") == 0) { + GtkWidget *menuitem = priv->sec_activate_target; + +diff --git a/src/gen-notification-item.xml.c b/src/gen-notification-item.xml.c +index 0bc6ab2..18a288b 100644 +--- a/src/gen-notification-item.xml.c ++++ b/src/gen-notification-item.xml.c +@@ -25,6 +25,10 @@ const char * _notification_item = + " <arg type=\"i\" name=\"delta\" direction=\"in\" />\n" + " <arg type=\"s\" name=\"orientation\" direction=\"in\" />\n" + " </method>\n" ++" <method name=\"Activate\">\n" ++" <arg type=\"i\" name=\"x\" direction=\"in\" />\n" ++" <arg type=\"i\" name=\"y\" direction=\"in\" />\n" ++" </method>\n" + " <method name=\"SecondaryActivate\">\n" + " <arg type=\"i\" name=\"x\" direction=\"in\" />\n" + " <arg type=\"i\" name=\"y\" direction=\"in\" />\n" +diff --git a/src/notification-item.xml b/src/notification-item.xml +index c93afd7..72d36eb 100644 +--- a/src/notification-item.xml ++++ b/src/notification-item.xml +@@ -24,6 +24,10 @@ + <arg type="i" name="delta" direction="in" /> + <arg type="s" name="orientation" direction="in" /> + </method> ++ <method name="Activate"> ++ <arg type="i" name="x" direction="in" /> ++ <arg type="i" name="y" direction="in" /> ++ </method> + <method name="SecondaryActivate"> + <arg type="i" name="x" direction="in" /> + <arg type="i" name="y" direction="in" /> +-- +2.4.5 + Added: libappindicator/trunk/no-python.patch =================================================================== --- libappindicator/trunk/no-python.patch (rev 0) +++ libappindicator/trunk/no-python.patch 2016-10-01 15:20:57 UTC (rev 191151) @@ -0,0 +1,81 @@ +diff -rupN badv2/bindings/Makefile.am good/bindings/Makefile.am +--- badv2/bindings/Makefile.am 2012-07-11 19:28:34.000000000 +0200 ++++ good/bindings/Makefile.am 2012-12-15 11:26:57.000000000 +0100 +@@ -3,7 +3,6 @@ SUBDIRS = \ + vala + else + SUBDIRS = \ +- python \ + vala + endif + +diff -rupN badv2/bindings/Makefile.in good/bindings/Makefile.in +--- badv2/bindings/Makefile.in 2012-07-11 19:29:07.000000000 +0200 ++++ good/bindings/Makefile.in 2012-12-15 11:27:45.000000000 +0100 +@@ -93,7 +93,7 @@ AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGE + distdir + ETAGS = etags + CTAGS = ctags +-DIST_SUBDIRS = python vala mono ++DIST_SUBDIRS = vala mono + DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + am__relativize = \ + dir0=`pwd`; \ +@@ -301,7 +301,7 @@ target_alias = @target_alias@ + top_build_prefix = @top_build_prefix@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ +-@USE_GTK3_FALSE@SUBDIRS = python vala $(am__append_1) ++@USE_GTK3_FALSE@SUBDIRS = vala $(am__append_1) + @USE_GTK3_TRUE@SUBDIRS = vala $(am__append_1) + all: all-recursive + +diff -rupN badv2/configure good/configure +--- badv2/configure 2012-07-11 19:29:06.000000000 +0200 ++++ good/configure 2012-12-15 11:28:15.000000000 +0100 +@@ -13904,17 +13904,17 @@ save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ +-#include <Python.h> ++include <Python.h> + _ACEOF +-if ac_fn_c_try_cpp "$LINENO"; then : +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 +-$as_echo "found" >&6; } +- +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +-$as_echo "not found" >&6; } +-as_fn_error $? "could not find Python headers" "$LINENO" 5 +-fi ++#if ac_fn_c_try_cpp "$LINENO"; then : ++# { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 ++#$as_echo "found" >&6; } ++# ++#else ++# { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 ++#$as_echo "not found" >&6; } ++#as_fn_error $? "could not find Python headers" "$LINENO" 5 ++#fi + rm -f conftest.err conftest.i conftest.$ac_ext + CPPFLAGS="$save_CPPFLAGS" + +@@ -14358,7 +14358,7 @@ fi + # Files + ########################### + +-ac_config_files="$ac_config_files Makefile src/Makefile src/appindicator-0.1.pc src/appindicator3-0.1.pc bindings/Makefile bindings/python/Makefile bindings/python/appindicator.override bindings/vala/Makefile bindings/vala/examples/Makefile tests/Makefile example/Makefile docs/Makefile docs/reference/Makefile docs/reference/version.xml docs/reference/libappindicator-docs.sgml" ++ac_config_files="$ac_config_files Makefile src/Makefile src/appindicator-0.1.pc src/appindicator3-0.1.pc bindings/Makefile bindings/vala/Makefile bindings/vala/examples/Makefile tests/Makefile example/Makefile docs/Makefile docs/reference/Makefile docs/reference/version.xml docs/reference/libappindicator-docs.sgml" + + + if test "x$has_mono" = "xtrue" ; then +@@ -15437,8 +15437,6 @@ do + "src/appindicator-0.1.pc") CONFIG_FILES="$CONFIG_FILES src/appindicator-0.1.pc" ;; + "src/appindicator3-0.1.pc") CONFIG_FILES="$CONFIG_FILES src/appindicator3-0.1.pc" ;; + "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;; +- "bindings/python/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/Makefile" ;; +- "bindings/python/appindicator.override") CONFIG_FILES="$CONFIG_FILES bindings/python/appindicator.override" ;; + "bindings/vala/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/vala/Makefile" ;; + "bindings/vala/examples/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/vala/examples/Makefile" ;; + "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;