summaryrefslogtreecommitdiff
path: root/community/gpointing-device-settings/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/gpointing-device-settings/PKGBUILD')
-rw-r--r--community/gpointing-device-settings/PKGBUILD63
1 files changed, 63 insertions, 0 deletions
diff --git a/community/gpointing-device-settings/PKGBUILD b/community/gpointing-device-settings/PKGBUILD
new file mode 100644
index 000000000..e901f65b6
--- /dev/null
+++ b/community/gpointing-device-settings/PKGBUILD
@@ -0,0 +1,63 @@
+# $Id: PKGBUILD 88555 2013-04-19 17:24:27Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Thomas Mudrunka <harvie@@email..cz>
+
+pkgname=gpointing-device-settings
+pkgver=1.5.1
+pkgrel=3
+pkgdesc="GUI tool for setting pointing device such as TrackPoint or Touchpad.
+Each UI can be written as dynamic loadable module, so a third party can add its own UI. This
+will replace GSynaptics."
+arch=('i686' 'x86_64')
+license=('GPL')
+url="http://live.gnome.org/GPointingDeviceSettings"
+depends=('gtk2' 'gconf' 'gnome-settings-daemon' 'xorg-xinput')
+makedepends=('intltool' 'pkgconfig')
+optdepends=('xf86-input-synaptics: Synaptics touchpads'
+ 'libsynaptics: Synaptics touchpads')
+source=("http://keihanna.dl.sourceforge.jp/gsynaptics/45812/${pkgname}-${pkgver}.tar.gz")
+md5sums=('1d1491473df8eabca3c15c997a975d7f')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ #WORKAROUND!!! WE SHOULD GET RID OF THIS:###########
+ echo 'diff --git a/configure.ac b/configure.ac
+index 29215e8..728d4c0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -146,9 +146,9 @@ GENHTML_OPTIONS="--title 'GPointingDeviceSettings Code Coverage'"
+
+ GPDS_CFLAGS="$XINPUT_CFLAGS $GTK_CFLAGS"
+ GPDS_CFLAGS="$GPDS_CFLAGS $GCONF2_CFLAGS"
+-GPDS_CFLAGS="$GPDS_CFLAGS -DGTK_DISABLE_DEPRECATED"
+-GPDS_CFLAGS="$GPDS_CFLAGS -DGDK_DISABLE_DEPRECATED"
+-GPDS_CFLAGS="$GPDS_CFLAGS -DG_DISABLE_DEPRECATED"
++#GPDS_CFLAGS="$GPDS_CFLAGS -DGTK_DISABLE_DEPRECATED"
++#GPDS_CFLAGS="$GPDS_CFLAGS -DGDK_DISABLE_DEPRECATED"
++#GPDS_CFLAGS="$GPDS_CFLAGS -DG_DISABLE_DEPRECATED"
+ GPDS_CFLAGS="$GPDS_CFLAGS -DGPDS_MODULEDIR=\\\"\"\$(gpds_moduledir)\"\\\""
+ GPDS_CFLAGS="$GPDS_CFLAGS -DGPDS_DATADIR=\\\"\"\$(gpds_datadir)\"\\\""
+ GPDS_CFLAGS="$GPDS_CFLAGS -DGPDS_UIDIR=\\\"\"\$(gpds_uidir)\"\\\""
+' | patch -p1
+
+ #Magic patch contributed by mattis:
+ echo '--- a/modules/gnome-settings-daemon-plugins/gsd-pointing-device-plugin.c
++++ b/modules/gnome-settings-daemon-plugins/gsd-pointing-device-plugin.c
+@@ -158,6 +158,9 @@
+ plugin_class->activate = activate;
+ plugin_class->deactivate = deactivate;
+ }
++
++static void
++gsd_mouse_extension_plugin_class_finalize(GsdMouseExtensionPluginClass *klass);
+' | patch -p1
+
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR=${pkgdir} install
+}