summaryrefslogtreecommitdiff
path: root/community/gtkdialog
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/gtkdialog
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/gtkdialog')
-rw-r--r--community/gtkdialog/PKGBUILD26
-rw-r--r--community/gtkdialog/build-fix.patch39
-rw-r--r--community/gtkdialog/gtkdialog.install20
3 files changed, 85 insertions, 0 deletions
diff --git a/community/gtkdialog/PKGBUILD b/community/gtkdialog/PKGBUILD
new file mode 100644
index 000000000..920dfd8a6
--- /dev/null
+++ b/community/gtkdialog/PKGBUILD
@@ -0,0 +1,26 @@
+# $Id: PKGBUILD 20469 2010-07-08 11:18:34Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: dojo <joerg.doll[at]gmx.de>
+
+pkgname=gtkdialog
+pkgver=0.7.20
+pkgrel=2
+pkgdesc="Gtkdialog is a small utility for fast and easy GUI building."
+arch=('i686' 'x86_64')
+url="http://linux.pte.hu/~pipas/gtkdialog/"
+license=("GPL")
+makedepends=('pkgconfig')
+depends=('gtk2' 'libglade')
+install=gtkdialog.install
+source=(ftp://linux.pte.hu/pub/gtkdialog/$pkgname-$pkgver.tar.gz
+ build-fix.patch)
+md5sums=('597103b3ec575dd7af9e84931a62c532'
+ 'e759df95bf729957df34f5c4310d34d1')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ patch -p1 <$srcdir/build-fix.patch
+ ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
+ make || return 1
+ make prefix=$pkgdir/usr install
+}
diff --git a/community/gtkdialog/build-fix.patch b/community/gtkdialog/build-fix.patch
new file mode 100644
index 000000000..3322c8830
--- /dev/null
+++ b/community/gtkdialog/build-fix.patch
@@ -0,0 +1,39 @@
+diff -wbBur gtkdialog-0.7.20/src/glade_support.c gtkdialog-0.7.20.my/src/glade_support.c
+--- gtkdialog-0.7.20/src/glade_support.c 2007-03-16 14:25:49.000000000 +0000
++++ gtkdialog-0.7.20.my/src/glade_support.c 2010-07-08 11:05:46.000000000 +0000
+@@ -40,7 +40,7 @@
+ typedef struct signal {
+ gchar *name;
+ GCallback callback;
+-} signal;
++} xsignal;
+
+ /*
+ ** Signal handler callbascks.
+@@ -206,7 +206,7 @@
+ static gboolean
+ find_and_connect_handler(
+ GtkWidget *widget,
+- signal *signals,
++ xsignal *signals,
+ const gchar *signal_name,
+ const gchar *handler_name)
+ {
+@@ -288,7 +288,7 @@
+ gpointer user_data)
+ {
+ gint n;
+- signal entry_signals[] = {
++ xsignal entry_signals[] = {
+ { "activate", (GCallback)on_any_entry_almost_any },
+ { "backspace", (GCallback)on_any_entry_almost_any },
+ { "copy-clipboard", (GCallback)on_any_entry_almost_any },
+@@ -319,7 +319,7 @@
+ gpointer user_data)
+ {
+ variable *var;
+- signal widget_signals[] = {
++ xsignal widget_signals[] = {
+ { "accel-closures-changed", (GCallback)on_any_widget_almost_any },
+ { "composited-changed", (GCallback)on_any_widget_almost_any },
+ { "grab-focus", (GCallback)on_any_widget_almost_any },
diff --git a/community/gtkdialog/gtkdialog.install b/community/gtkdialog/gtkdialog.install
new file mode 100644
index 000000000..f74f0882b
--- /dev/null
+++ b/community/gtkdialog/gtkdialog.install
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(gtkdialog.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}