1 # Maintainer: josephgbr <rafael.f.f1 at gmail.com>
2 # Contributor: webmjm <web.jdm at gmail.com>
5 pkgname=lib32-$_pkgbasename
8 pkgdesc="Hardware Abstraction Layer (32 Bit)"
10 license=('GPL' 'custom:AFL')
11 url="http://www.freedesktop.org/wiki/Software/hal"
12 depends=('lib32-dbus-glib' 'lib32-libusb-compat' 'lib32-udev'
13 'lib32-util-linux' $_pkgbasename)
14 makedepends=('gcc-multilib' 'gperf' 'hal-info' 'eject' 'filesystem'
15 'usbutils' 'pm-utils' 'pciutils' 'dmidecode' 'consolekit')
16 options=('!libtool' '!makeflags')
17 source=(http://hal.freedesktop.org/releases/${_pkgbasename}-${pkgver}.tar.gz
18 hal-0.5.9-hide-diagnostic.patch
19 hal-remove-dell-killswitch.patch
21 hal-HDAPS-blacklist.patch
22 hal-xen-unignore-axes.patch
23 hal-use-at-console.patch
24 fix-libusb-detection.patch
27 handle-input-touchpad.patch
28 macbook-fix-ioperm.patch
29 hal-ignore-internal-dm-devices.patch
30 dont-build-hald-probe-video4linux.patch)
31 md5sums=('e9163df591a6f38f59fdbfe33e73bf20'
32 '4d4b6801a1cedca22b8bdd9db73b16fb'
33 '6d87c3e63184ae3a69caafc846f538a3'
34 '6507e5091ee2d11a87ae738a8e2caecb'
35 '1171c2d83b76059f2da7a3538e08fa4e'
36 '52bd305299aa22ae07f1a862c22d30fa'
37 '3f11234fb5e5044fbfc5199ec65b182c'
38 'da088f12cfc2d190bbf95b747e19ab9e'
39 '634f4ec2203eff7de8fa2ed2c6b9cbe0'
40 'f8c9b3a40d03907b498feef571d42466'
41 '0575677614db0632b17b1a719798c7e0'
42 '46a5db3ff896ee37762aa8d7e70942c4'
43 '17bc2b911f245cef4a1d98769d5c4d14'
44 '43d8edfdd81a581c53bd4a1cb436b265')
47 cd "${srcdir}/${_pkgbasename}-${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 patch -Np1 -i "${srcdir}/dont-build-hald-probe-video4linux.patch"
67 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
68 --libexecdir=/usr/lib32/hal --libdir=/usr/lib32 --with-udev-prefix=/etc \
69 --disable-{docbook-docs,gtk-doc,policy-kit,smbios} \
70 --disable-{acl-management,acpi-ibm,console-kit} \
71 --enable-{umount-helper,static=no} \
72 --with-{hal-user,hal-group}=hal \
73 --with-pid-file=/var/run/hald.pid \
80 cd "${srcdir}/${_pkgbasename}-${pkgver}"
81 make DESTDIR="${pkgdir}" install
82 rm -rf "${pkgdir}"/{etc,sbin,var,usr/{bin,include,sbin,share}}
83 install -Dm644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/COPYING"