From 8afacb96301acc0e082c67df010162d0f95d5786 Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Wed, 14 Jun 2017 02:42:14 -0400 Subject: [PATCH] New package: libindicator-12.10.1 --- common/shlibs | 1 + srcpkgs/libindicator-devel | 1 + srcpkgs/libindicator/patches/gtk+3.patch | 11 +++++++++ srcpkgs/libindicator/template | 31 ++++++++++++++++++++++++ 4 files changed, 44 insertions(+) create mode 120000 srcpkgs/libindicator-devel create mode 100644 srcpkgs/libindicator/patches/gtk+3.patch create mode 100644 srcpkgs/libindicator/template diff --git a/common/shlibs b/common/shlibs index 82ba03c644f..07d4b50a10e 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2770,3 +2770,4 @@ libappstream-glib.so.8 appstream-glib-0.6.13_1 libappstream-builder.so.8 appstream-glib-0.6.13_1 libflatpak.so.0 flatpak-0.9.3_2 libnanomsg.so.5.0.0 nanomsg-1.0.0_2 +libindicator3.so.7 libindicator-12.10.1_1 diff --git a/srcpkgs/libindicator-devel b/srcpkgs/libindicator-devel new file mode 120000 index 00000000000..67d16362009 --- /dev/null +++ b/srcpkgs/libindicator-devel @@ -0,0 +1 @@ +libindicator \ No newline at end of file diff --git a/srcpkgs/libindicator/patches/gtk+3.patch b/srcpkgs/libindicator/patches/gtk+3.patch new file mode 100644 index 00000000000..352a245af59 --- /dev/null +++ b/srcpkgs/libindicator/patches/gtk+3.patch @@ -0,0 +1,11 @@ +--- libindicator/indicator-image-helper.c.bck 2017-06-14 03:46:33.174214553 -0400 ++++ libindicator/indicator-image-helper.c 2017-06-14 03:47:00.594494305 -0400 +@@ -69,7 +69,7 @@ + GdkPixbuf * pixbuf = gdk_pixbuf_new_from_file(icon_filename, &error); + + if (icon_info != NULL) { +- gtk_icon_info_free(icon_info); ++ g_object_unref(icon_info); + } + + if (pixbuf == NULL) { diff --git a/srcpkgs/libindicator/template b/srcpkgs/libindicator/template new file mode 100644 index 00000000000..bf6fe2daca8 --- /dev/null +++ b/srcpkgs/libindicator/template @@ -0,0 +1,31 @@ +# Template file for 'libindicator' +pkgname=libindicator +version=12.10.1 +revision=1 +build_style=gnu-configure +configure_args="--with-gtk=3" +hostmakedepends="pkg-config glib-devel" +makedepends="garcon gtk+3-devel libglib-devel" +short_desc="Convenient symbols and functions for indicators in the Ayatana project" +maintainer="Toyam Cox " +license="GPL-3" +homepage="https://launchpad.net/libindicator" +distfiles="https://launchpad.net/libindicator/${version%.*}/${version}/+download/libindicator-${version}.tar.gz" +checksum=b2d2e44c10313d5c9cd60db455d520f80b36dc39562df079a3f29495e8f9447f + +post_configure() { + # Due to laziness, let's just fix the problem here without + # understanding it + sed -i -e 's/-lglib-2.0-lm/-lglib-2.0 -lm/' Makefile */Makefile +} + +libindicator-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove usr/lib/*.so + vmove usr/lib/*.a + } +}