Want more features on Pastebin? Sign Up, it's FREE!
Guest

aur-gpointing-device-settings/PKGBUILD

By: a guest on Oct 12th, 2010  |  syntax: Bash  |  size: 2.34 KB  |  views: 220  |  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.         echo 'diff --git a/configure.ac b/configure.ac
  30. index 29215e8..728d4c0 100644
  31. --- a/configure.ac
  32. +++ b/configure.ac
  33. @@ -146,9 +146,9 @@ GENHTML_OPTIONS="--title 'GPointingDeviceSettings Code Coverage'"
  34.  
  35. GPDS_CFLAGS="$XINPUT_CFLAGS $GTK_CFLAGS"
  36. GPDS_CFLAGS="$GPDS_CFLAGS $GCONF2_CFLAGS"
  37. -GPDS_CFLAGS="$GPDS_CFLAGS -DGTK_DISABLE_DEPRECATED"
  38. -GPDS_CFLAGS="$GPDS_CFLAGS -DGDK_DISABLE_DEPRECATED"
  39. -GPDS_CFLAGS="$GPDS_CFLAGS -DG_DISABLE_DEPRECATED"
  40. +#GPDS_CFLAGS="$GPDS_CFLAGS -DGTK_DISABLE_DEPRECATED"
  41. +#GPDS_CFLAGS="$GPDS_CFLAGS -DGDK_DISABLE_DEPRECATED"
  42. +#GPDS_CFLAGS="$GPDS_CFLAGS -DG_DISABLE_DEPRECATED"
  43. GPDS_CFLAGS="$GPDS_CFLAGS -DGPDS_MODULEDIR=\\\"\"\$(gpds_moduledir)\"\\\""
  44. GPDS_CFLAGS="$GPDS_CFLAGS -DGPDS_DATADIR=\\\"\"\$(gpds_datadir)\"\\\""
  45. GPDS_CFLAGS="$GPDS_CFLAGS -DGPDS_UIDIR=\\\"\"\$(gpds_uidir)\"\\\""
  46. ' | patch -p1
  47.         ./configure  --prefix=/usr --sysconfdir=/etc  || return 1
  48.         #./configure || return 1
  49.         make || return 1
  50.         make DESTDIR=${pkgdir} install || return 1
  51.  
  52.         mkdir -p ${pkgdir}/usr/bin
  53.         cd ${pkgdir}/usr/bin
  54.  
  55.         mkdir -p ${pkgdir}/usr/share/applications
  56.  
  57. #       echo '[Desktop Entry]
  58. #Encoding=UTF-8
  59. #Name=gpointing-device-settings
  60. #Comment=Set your pointing device (such as TrackPoint or Touchpad) preferences
  61. #Exec=gpointing-device-settings
  62. ##Icon=input-mouse
  63. #Icon=input_devices_settings
  64. #Terminal=false
  65. #Type=Application
  66. #StartupNotify=true
  67. #Categories=GNOME;GTK;Settings;HardwareSettings;Application;
  68. #' > ${pkgdir}/usr/share/applications/gnome-gpointing-device-settings.desktop
  69.  
  70. }
clone this paste RAW Paste Data