summaryrefslogtreecommitdiff
path: root/community/gpointing-device-settings/PKGBUILD
blob: e901f65b679f515077212e21a1bb2cac5068b778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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
}