1 # Contributor: Edigarev Evgeniy <edigarev@gmail.com>
6 pkgdesc="Hardware Abstraction Layer without ConsoleKit and PolicyKit support"
8 license=('GPL' 'custom')
9 url="http://www.freedesktop.org/wiki/Software/hal"
10 depends=('dbus-glib>=0.82' 'libusb>=0.1.12' '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' 'util-linux-ng>=2.16')
11 makedepends=('pkgconfig' 'gperf')
12 provides=('hal=0.5.14')
14 options=('!libtool' '!makeflags')
16 source=(http://hal.freedesktop.org/releases/hal-${pkgver}.tar.gz
18 cryptsetup_location.patch
19 hal-0.5.9-hide-diagnostic.patch
20 hal-remove-dell-killswitch.patch
22 hal-HDAPS-blacklist.patch
23 hal-xen-unignore-axes.patch
24 hal-use-at-console.patch
25 fix-libusb-detection.patch)
28 cd "${srcdir}/hal-${pkgver}"
29 patch -Np1 -i "${srcdir}/cryptsetup_location.patch" || return 1
30 patch -Np1 -i "${srcdir}/hal-0.5.9-hide-diagnostic.patch" || return 1
31 patch -Np1 -i "${srcdir}/hal-remove-dell-killswitch.patch" || return 1
32 patch -Np1 -i "${srcdir}/hal-KVM-evdev.patch" || return 1
33 patch -Np1 -i "${srcdir}/hal-HDAPS-blacklist.patch" || return 1
34 patch -Np1 -i "${srcdir}/hal-xen-unignore-axes.patch" || return 1
35 patch -Np1 -i "${srcdir}/hal-use-at-console.patch" || return 1
36 patch -Np1 -i "${srcdir}/fix-libusb-detection.patch" || return 1
38 libtoolize --force || return 1
43 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
44 --libexecdir=/usr/lib/hal --with-udev-prefix=/etc \
45 --enable-static=no --disable-acpi-ibm \
46 --disable-docbook-docs --disable-console-kit \
47 --disable-policy-kit --disable-acl-management \
48 --enable-umount-helper --disable-smbios \
49 --with-hal-user=hal --with-hal-group=hal \
50 --with-pid-file=/var/run/hald.pid || return 1
52 make DESTDIR="${pkgdir}" install || return 1
53 install -m755 -d "${pkgdir}/etc/rc.d"
54 install -m755 -d "${pkgdir}/media" || return 1
55 install -m755 "${srcdir}/hal" "${pkgdir}/etc/rc.d/" || return 1
57 install -m755 -d "${pkgdir}/usr/share/licenses/hal"
58 install -m644 COPYING "${pkgdir}/usr/share/licenses/hal/" || return 1
60 md5sums=('e9163df591a6f38f59fdbfe33e73bf20'
61 '277e96ac130d7bfce0b30f0b80db8782'
62 'c688a3c6574699365926f4fef7441545'
63 '4d4b6801a1cedca22b8bdd9db73b16fb'
64 '6d87c3e63184ae3a69caafc846f538a3'
65 '6507e5091ee2d11a87ae738a8e2caecb'
66 '1171c2d83b76059f2da7a3538e08fa4e'
67 '52bd305299aa22ae07f1a862c22d30fa'
68 '3f11234fb5e5044fbfc5199ec65b182c'
69 'da088f12cfc2d190bbf95b747e19ab9e')