summaryrefslogtreecommitdiff
path: root/community/pidgin-fonomobutton
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/pidgin-fonomobutton
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/pidgin-fonomobutton')
-rw-r--r--community/pidgin-fonomobutton/PKGBUILD24
-rw-r--r--community/pidgin-fonomobutton/pidgin-fonomobutton-0.1.6-const.patch11
-rw-r--r--community/pidgin-fonomobutton/pidgin-fonomobutton.install11
3 files changed, 46 insertions, 0 deletions
diff --git a/community/pidgin-fonomobutton/PKGBUILD b/community/pidgin-fonomobutton/PKGBUILD
new file mode 100644
index 000000000..ec1bbda62
--- /dev/null
+++ b/community/pidgin-fonomobutton/PKGBUILD
@@ -0,0 +1,24 @@
+# $Id: PKGBUILD 5894 2009-11-22 13:10:00Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+
+pkgname=pidgin-fonomobutton
+pkgver=0.1.6
+pkgrel=1
+pkgdesc="Adds a video-chat button to the the conversation window"
+arch=('i686' 'x86_64')
+url="http://www.fonomo.com/software/pidgin.html"
+license=('GPL')
+depends=('pidgin')
+install=pidgin-fonomobutton.install
+source=(ftp://ftp.grokthis.net/pub/fonomo/${pkgname}-${pkgver}.tar.bz2
+ pidgin-fonomobutton-0.1.6-const.patch)
+md5sums=('020673634143b2e5a3c3ea6e76c4cdce'
+ '33c266437cd6f707e8f02eda3b485406')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -Np1 -i ${srcdir}/pidgin-fonomobutton-0.1.6-const.patch || return 1
+ make all || return 1
+ install -Dm755 fonomobutton.so "${pkgdir}/usr/lib/pidgin/fonomobutton.so"
+ install -Dm644 camera-fonomo.png "${pkgdir}/usr/share/icons/hicolor/22x22/devices/camera-fonomo.png"
+}
diff --git a/community/pidgin-fonomobutton/pidgin-fonomobutton-0.1.6-const.patch b/community/pidgin-fonomobutton/pidgin-fonomobutton-0.1.6-const.patch
new file mode 100644
index 000000000..e57648840
--- /dev/null
+++ b/community/pidgin-fonomobutton/pidgin-fonomobutton-0.1.6-const.patch
@@ -0,0 +1,11 @@
+--- a/fonomobutton.c 2008-10-20 01:06:40.000000000 -0700
++++ b/fonomobutton.c 2009-11-22 10:40:48.000000000 -0800
+@@ -88,7 +88,7 @@
+ {
+ GtkWidget *button, *image, *sep;
+ GtkIconInfo *icoinfo;
+- gchar *iconames[]={"camera-web", "camera-fonomo"};
++ const gchar *iconames[]={"camera-web", "camera-fonomo"};
+
+ button = gtk_button_new();
+ gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE);
diff --git a/community/pidgin-fonomobutton/pidgin-fonomobutton.install b/community/pidgin-fonomobutton/pidgin-fonomobutton.install
new file mode 100644
index 000000000..21b79d2d4
--- /dev/null
+++ b/community/pidgin-fonomobutton/pidgin-fonomobutton.install
@@ -0,0 +1,11 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}