This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 10th, 2010  |  syntax: None  |  size: 3.26 KB  |  views: 180  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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}"
  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.     echo 'diff --git a/modules/gpds-touchpad-ui.c b/modules/gpds-touchpad-ui.c
  50. index 581b27c..ce68443 100644
  51. --- a/modules/gpds-touchpad-ui.c
  52. +++ b/modules/gpds-touchpad-ui.c
  53. @@ -965,8 +965,14 @@ set_tapping_time_from_preference (GpdsUI *ui, GtkBuilder *builder)
  54.          }
  55.      }
  56.  
  57. -    if (!gpds_ui_get_gconf_int(ui, GPDS_TOUCHPAD_TAP_TIME_KEY, &value))
  58. +    if (!gpds_ui_get_gconf_int(ui, GPDS_TOUCHPAD_TAP_TIME_KEY, &value) && !values) {
  59. +        if (!gpds_xinput_ui_get_xinput_int_property(GPDS_XINPUT_UI(ui),
  60. +                                                    GPDS_TOUCHPAD_TAP_TIME,
  61. +                                                    &values, &n_values)) {
  62. +            return;
  63. +        }
  64.          value = values[0];
  65. +    }
  66.  
  67.      double_value = value;
  68.      object = gpds_ui_get_ui_object_by_name(GPDS_UI(ui), "tapping_time_scale");' | patch -p1
  69.  
  70.         ./configure  --prefix=/usr --sysconfdir=/etc  || return 1
  71.         #./configure || return 1
  72.         make || return 1
  73.         make DESTDIR=${pkgdir} install || return 1
  74.  
  75.         mkdir -p ${pkgdir}/usr/bin
  76.         cd ${pkgdir}/usr/bin
  77.  
  78.         mkdir -p ${pkgdir}/usr/share/applications
  79.  
  80. #       echo '[Desktop Entry]
  81. #Encoding=UTF-8
  82. #Name=gpointing-device-settings
  83. #Comment=Set your pointing device (such as TrackPoint or Touchpad) preferences
  84. #Exec=gpointing-device-settings
  85. ##Icon=input-mouse
  86. #Icon=input_devices_settings
  87. #Terminal=false
  88. #Type=Application
  89. #StartupNotify=true
  90. #Categories=GNOME;GTK;Settings;HardwareSettings;Application;
  91. #' > ${pkgdir}/usr/share/applications/gnome-gpointing-device-settings.desktop
  92.  
  93. }
clone this paste RAW Paste Data