[arch-commits] Commit in lxtask/trunk (PKGBUILD gtk3.patch)
Balló György
bgyorgy at archlinux.org
Wed Feb 17 02:26:44 UTC 2016
Date: Wednesday, February 17, 2016 @ 03:26:43
Author: bgyorgy
Revision: 161931
upgpkg: lxtask 0.1.6-2
Add GTK+ 3 version
Added:
lxtask/trunk/gtk3.patch
Modified:
lxtask/trunk/PKGBUILD
------------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++--------
gtk3.patch | 24 ++++++++++++++++++++++++
2 files changed, 62 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-02-17 02:12:22 UTC (rev 161930)
+++ PKGBUILD 2016-02-17 02:26:43 UTC (rev 161931)
@@ -4,26 +4,56 @@
# Contributor: Angel Velasquez <angvp at archlinux.org>
# Contributor: Geoffroy Carrier <geoffroy.carrier at koon.fr>
-pkgname=lxtask
+pkgbase=lxtask
+pkgname=(lxtask lxtask-gtk3)
pkgver=0.1.6
-pkgrel=1
+pkgrel=2
pkgdesc='Task manager of the LXDE Desktop'
arch=('i686' 'x86_64')
license=('GPL2')
url='http://lxde.org/'
groups=('lxde')
-depends=('gtk2')
+depends=('gtk2' 'gtk3')
makedepends=('intltool')
-source=(http://downloads.sourceforge.net/lxde/$pkgname-$pkgver.tar.xz)
-md5sums=('14b5341822aaa049f2d4d5a56c1b28f2')
+source=(http://downloads.sourceforge.net/lxde/$pkgbase-$pkgver.tar.xz
+ gtk3.patch)
+md5sums=('14b5341822aaa049f2d4d5a56c1b28f2'
+ '86d38c288611bbe3565218abb12bf5ac')
+prepare() {
+ cd $pkgbase-$pkgver
+ patch -Np1 -i ../gtk3.patch
+}
+
build() {
- cd $pkgname-$pkgver
+ # GTK+ 2 version
+ [ -d gtk2 ] || cp -r $pkgbase-$pkgver gtk2
+ cd gtk2
./configure --sysconfdir=/etc --prefix=/usr
make
+
+ cd "$srcdir"
+ # GTK+ 3 version
+ [ -d gtk3 ] || cp -r $pkgbase-$pkgver gtk3
+ cd gtk3
+ ./configure --sysconfdir=/etc --prefix=/usr --enable-gtk3
+ make
}
-package() {
- cd $pkgname-$pkgver
+package_lxtask() {
+ groups=('lxde')
+ depends=('gtk2')
+
+ cd gtk2
make DESTDIR="$pkgdir" install
}
+
+package_lxtask-gtk3() {
+ groups=('lxde-gtk3')
+ pkgdesc+=' (GTK+ 3 version)'
+ depends=('gtk3')
+ conflicts=('lxtask')
+
+ cd gtk3
+ make DESTDIR="$pkgdir" install
+}
Added: gtk3.patch
===================================================================
--- gtk3.patch (rev 0)
+++ gtk3.patch 2016-02-17 02:26:43 UTC (rev 161931)
@@ -0,0 +1,24 @@
+From 91656b073774e9ba3b9c27c99c3fd2553be60bab Mon Sep 17 00:00:00 2001
+From: =?utf8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor at gmail.com>
+Date: Mon, 15 Dec 2014 15:41:26 +0100
+Subject: [PATCH] Add icon to the about dialog
+
+---
+ src/interface.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/interface.c b/src/interface.c
+index cb0eeef..4771f0c 100644
+--- a/src/interface.c
++++ b/src/interface.c
+@@ -403,6 +403,7 @@ void show_about_dialog(void)
+ gtk_about_dialog_set_program_name ( (GtkAboutDialog*)about_dlg, _( "LXTask" ) );
+ #endif
+ /* gtk_about_dialog_set_logo( (GtkAboutDialog*)about_dlg, gdk_pixbuf_new_from_file( PACKAGE_DATA_DIR"/pixmaps/lxtask.png", NULL ) ); */
++ gtk_about_dialog_set_logo_icon_name( (GtkAboutDialog*)about_dlg, "utilities-system-monitor" );
+ gtk_about_dialog_set_copyright ( (GtkAboutDialog*)about_dlg, _( "Copyright (C) 2008 LXDE team" ) );
+ gtk_about_dialog_set_comments ( (GtkAboutDialog*)about_dlg, _( "Lightweight task manager for LXDE project" ) );
+ gtk_about_dialog_set_license ( (GtkAboutDialog*)about_dlg, "LXTask\n\nCopyright (C) 2008 LXDE team\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nas published by the Free Software Foundation; either version 2\nof the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA." );
+--
+2.1.4
+
More information about the arch-commits
mailing list