Commit | Line | Data |
---|---|---|
209feeb0 H |
1 | # Contributor: Thomas Mudrunka <harvie@@email..cz> |
2 | # You can also contact me on http://blog.harvie.cz/ | |
3 | ||
4 | pkgname=gpointing-device-settings | |
5 | pkgver=1.5.1 | |
6 | pkgrel=2 | |
7 | 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 | |
8 | will replace GSynaptics." | |
9 | arch=('i686' 'x86_64') | |
10 | license=('GPL') | |
11 | url="http://live.gnome.org/GPointingDeviceSettings" | |
12 | depends=( | |
13 | 'gtk2' 'gconf' 'gnome-settings-daemon' | |
14 | ) | |
15 | makedepends=( | |
16 | 'intltool' 'pkgconfig' | |
17 | ) | |
18 | optdepends=( | |
19 | 'xf86-input-synaptics: Synaptics touchpads' | |
20 | 'libsynaptics: Synaptics touchpads' | |
21 | ) | |
22 | ||
23 | source=("http://keihanna.dl.sourceforge.jp/gsynaptics/45812/${pkgname}-${pkgver}.tar.gz") | |
24 | md5sums=('1d1491473df8eabca3c15c997a975d7f') | |
25 | ||
26 | build() { | |
27 | cd "${srcdir}/${pkgname}-${pkgver}" | |
785f9a46 H |
28 | |
29 | #WORKAROUND!!! WE SHOULD GET RID OF THIS:########### | |
30 | echo 'diff --git a/configure.ac b/configure.ac | |
31 | index 29215e8..728d4c0 100644 | |
32 | --- a/configure.ac | |
33 | +++ b/configure.ac | |
34 | @@ -146,9 +146,9 @@ GENHTML_OPTIONS="--title 'GPointingDeviceSettings Code Coverage'" | |
35 | ||
36 | GPDS_CFLAGS="$XINPUT_CFLAGS $GTK_CFLAGS" | |
37 | GPDS_CFLAGS="$GPDS_CFLAGS $GCONF2_CFLAGS" | |
38 | -GPDS_CFLAGS="$GPDS_CFLAGS -DGTK_DISABLE_DEPRECATED" | |
39 | -GPDS_CFLAGS="$GPDS_CFLAGS -DGDK_DISABLE_DEPRECATED" | |
40 | -GPDS_CFLAGS="$GPDS_CFLAGS -DG_DISABLE_DEPRECATED" | |
41 | +#GPDS_CFLAGS="$GPDS_CFLAGS -DGTK_DISABLE_DEPRECATED" | |
42 | +#GPDS_CFLAGS="$GPDS_CFLAGS -DGDK_DISABLE_DEPRECATED" | |
43 | +#GPDS_CFLAGS="$GPDS_CFLAGS -DG_DISABLE_DEPRECATED" | |
44 | GPDS_CFLAGS="$GPDS_CFLAGS -DGPDS_MODULEDIR=\\\"\"\$(gpds_moduledir)\"\\\"" | |
45 | GPDS_CFLAGS="$GPDS_CFLAGS -DGPDS_DATADIR=\\\"\"\$(gpds_datadir)\"\\\"" | |
46 | GPDS_CFLAGS="$GPDS_CFLAGS -DGPDS_UIDIR=\\\"\"\$(gpds_uidir)\"\\\"" | |
47 | ' | patch -p1 | |
48 | #################################################### | |
49 | ||
209feeb0 H |
50 | ./configure --prefix=/usr --sysconfdir=/etc || return 1 |
51 | #./configure || return 1 | |
52 | make || return 1 | |
53 | make DESTDIR=${pkgdir} install || return 1 | |
54 | ||
55 | mkdir -p ${pkgdir}/usr/bin | |
56 | cd ${pkgdir}/usr/bin | |
57 | ||
58 | mkdir -p ${pkgdir}/usr/share/applications | |
59 | ||
60 | # echo '[Desktop Entry] | |
61 | #Encoding=UTF-8 | |
62 | #Name=gpointing-device-settings | |
63 | #Comment=Set your pointing device (such as TrackPoint or Touchpad) preferences | |
64 | #Exec=gpointing-device-settings | |
65 | ##Icon=input-mouse | |
66 | #Icon=input_devices_settings | |
67 | #Terminal=false | |
68 | #Type=Application | |
69 | #StartupNotify=true | |
70 | #Categories=GNOME;GTK;Settings;HardwareSettings;Application; | |
71 | #' > ${pkgdir}/usr/share/applications/gnome-gpointing-device-settings.desktop | |
72 | ||
73 | } |