Advertisement
Guest User

gpointing-device-settings

a guest
Apr 25th, 2011
623
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  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 '--- a/modules/gnome-settings-daemon-plugins/gsd-pointing-device-plugin.c
  50. +++ b/modules/gnome-settings-daemon-plugins/gsd-pointing-device-plugin.c
  51. @@ -158,6 +158,9 @@
  52. plugin_class->activate = activate;
  53. plugin_class->deactivate = deactivate;
  54. }
  55. +
  56. +static void
  57. +gsd_mouse_extension_plugin_class_finalize(GsdMouseExtensionPluginClass *klass);
  58. ' | patch -p1
  59. ####################################################
  60.  
  61. ./configure --prefix=/usr --sysconfdir=/etc || return 1
  62. #./configure || return 1
  63. make || return 1
  64. make DESTDIR=${pkgdir} install || return 1
  65.  
  66. mkdir -p ${pkgdir}/usr/bin
  67. cd ${pkgdir}/usr/bin
  68.  
  69. mkdir -p ${pkgdir}/usr/share/applications
  70.  
  71. # echo '[Desktop Entry]
  72. #Encoding=UTF-8
  73. #Name=gpointing-device-settings
  74. #Comment=Set your pointing device (such as TrackPoint or Touchpad) preferences
  75. #Exec=gpointing-device-settings
  76. ##Icon=input-mouse
  77. #Icon=input_devices_settings
  78. #Terminal=false
  79. #Type=Application
  80. #StartupNotify=true
  81. #Categories=GNOME;GTK;Settings;HardwareSettings;Application;
  82. #' > ${pkgdir}/usr/share/applications/gnome-gpointing-device-settings.desktop
  83.  
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement