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

HAL

By: nomaster on Jan 13th, 2012  |  syntax: Bash  |  size: 3.35 KB  |  views: 136  |  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. ##
  2. ##
  3.  
  4. pkgname=hal
  5. pkgver=0.5.14
  6. pkgrel=6
  7. pkgdesc="Hardware Abstraction Layer"
  8. arch=(i686 x86_64)
  9. license=('GPL' 'custom')
  10. url="http://www.freedesktop.org/wiki/Software/hal"
  11. depends=('dbus-glib>=0.82' 'libusb-compat' 'udev>=146' 'filesystem>=0.7.1-5' 'hal-info>=0.20090716' 'eject' 'dmidecode' 'pciutils>=3.0.2' 'usbutils>=0.73-5' 'pm-utils>=1.2.5' 'consolekit>=0.4.1' 'util-linux-ng>=2.16' 'v4l-utils')
  12. makedepends=('pkgconfig' 'gperf')
  13. options=('!libtool' '!makeflags')
  14. install=hal.install
  15. source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
  16.         hal
  17.         hal-0.5.9-hide-diagnostic.patch
  18.         hal-remove-dell-killswitch.patch
  19.         hal-KVM-evdev.patch
  20.         hal-HDAPS-blacklist.patch
  21.         hal-xen-unignore-axes.patch
  22.         hal-use-at-console.patch
  23.         fix-libusb-detection.patch
  24.         dbus-error-init.patch
  25.         path-max.patch
  26.         handle-input-touchpad.patch
  27.         macbook-fix-ioperm.patch
  28.         hal-ignore-internal-dm-devices.patch)
  29. md5sums=('e9163df591a6f38f59fdbfe33e73bf20'
  30.          '277e96ac130d7bfce0b30f0b80db8782'
  31.          '4d4b6801a1cedca22b8bdd9db73b16fb'
  32.          '6d87c3e63184ae3a69caafc846f538a3'
  33.          '6507e5091ee2d11a87ae738a8e2caecb'
  34.          '1171c2d83b76059f2da7a3538e08fa4e'
  35.          '52bd305299aa22ae07f1a862c22d30fa'
  36.          '3f11234fb5e5044fbfc5199ec65b182c'
  37.          'da088f12cfc2d190bbf95b747e19ab9e'
  38.          '634f4ec2203eff7de8fa2ed2c6b9cbe0'
  39.          'f8c9b3a40d03907b498feef571d42466'
  40.          '0575677614db0632b17b1a719798c7e0'
  41.          '46a5db3ff896ee37762aa8d7e70942c4'
  42.          '17bc2b911f245cef4a1d98769d5c4d14')
  43.  
  44. build() {
  45.   sed -i 's|linux/videodev.h|libv4l1-videodev.h|g' $srcdir/$pkgname-$pkgver/hald/linux/probing/probe-video4linux.c
  46.  
  47.   cd "${srcdir}/${pkgname}-${pkgver}"
  48.   patch -Np1 -i "${srcdir}/hal-0.5.9-hide-diagnostic.patch"
  49.   patch -Np1 -i "${srcdir}/hal-remove-dell-killswitch.patch"
  50.   patch -Np1 -i "${srcdir}/hal-KVM-evdev.patch"
  51.   patch -Np1 -i "${srcdir}/hal-HDAPS-blacklist.patch"
  52.   patch -Np1 -i "${srcdir}/hal-xen-unignore-axes.patch"
  53.   patch -Np1 -i "${srcdir}/hal-use-at-console.patch"
  54.   patch -Np1 -i "${srcdir}/fix-libusb-detection.patch"
  55.   patch -Np1 -i "${srcdir}/dbus-error-init.patch"
  56.   patch -Np1 -i "${srcdir}/path-max.patch"
  57.   patch -Np1 -i "${srcdir}/handle-input-touchpad.patch"
  58.   patch -Np1 -i "${srcdir}/macbook-fix-ioperm.patch"
  59.   patch -Np1 -i "${srcdir}/hal-ignore-internal-dm-devices.patch"
  60.  
  61.   libtoolize --force
  62.   aclocal
  63.   autoconf
  64.   automake
  65.  
  66.   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
  67.       --libexecdir=/usr/lib/hal --with-udev-prefix=/etc \
  68.       --enable-static=no --disable-acpi-ibm \
  69.       --disable-docbook-docs --disable-console-kit \
  70.       --disable-policy-kit --disable-acl-management \
  71.       --enable-umount-helper --disable-smbios \
  72.       --with-hal-user=hal --with-hal-group=hal \
  73.       --with-pid-file=/var/run/hald.pid \
  74.       --disable-gtk-doc
  75.   make
  76.   make DESTDIR="${pkgdir}" install
  77.   install -m755 -d "${pkgdir}/etc/rc.d"
  78.   install -m755 -d "${pkgdir}/media"
  79.   install -m755 "${srcdir}/hal" "${pkgdir}/etc/rc.d/"
  80.  
  81.   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  82.   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
  83.  
  84.   # Fix udev rule location
  85.   install -d -m755 "${pkgdir}/lib"
  86.   mv "${pkgdir}/etc/udev" "${pkgdir}/lib/"
  87. }
clone this paste RAW Paste Data