updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / hal / PKGBUILD
blob866d1c5d3c2be803ecd7d0bed739ef5be3fdd1cf
1 # Contributor: Jan de Groot <jgc@archlinux.org>
2 # Contributor: Link Dupont <link@subpop.net>
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')
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')
44 build() {
45   cd "${srcdir}/${pkgname}-${pkgver}"
46   patch -Np1 -i "${srcdir}/hal-0.5.9-hide-diagnostic.patch"
47   patch -Np1 -i "${srcdir}/hal-remove-dell-killswitch.patch"
48   patch -Np1 -i "${srcdir}/hal-KVM-evdev.patch"
49   patch -Np1 -i "${srcdir}/hal-HDAPS-blacklist.patch"
50   patch -Np1 -i "${srcdir}/hal-xen-unignore-axes.patch"
51   patch -Np1 -i "${srcdir}/hal-use-at-console.patch"
52   patch -Np1 -i "${srcdir}/fix-libusb-detection.patch"
53   patch -Np1 -i "${srcdir}/dbus-error-init.patch"
54   patch -Np1 -i "${srcdir}/path-max.patch"
55   patch -Np1 -i "${srcdir}/handle-input-touchpad.patch"
56   patch -Np1 -i "${srcdir}/macbook-fix-ioperm.patch"
57   patch -Np1 -i "${srcdir}/hal-ignore-internal-dm-devices.patch"
58   
59   libtoolize --force
60   aclocal
61   autoconf
62   automake
64   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
65       --libexecdir=/usr/lib/hal --with-udev-prefix=/etc \
66       --enable-static=no --disable-acpi-ibm \
67       --disable-docbook-docs --disable-console-kit \
68       --disable-policy-kit --disable-acl-management \
69       --enable-umount-helper --disable-smbios \
70       --with-hal-user=hal --with-hal-group=hal \
71       --with-pid-file=/var/run/hald.pid \
72       --disable-gtk-doc
73   make
74   make DESTDIR="${pkgdir}" install
75   install -m755 -d "${pkgdir}/etc/rc.d"
76   install -m755 -d "${pkgdir}/media"
77   install -m755 "${srcdir}/hal" "${pkgdir}/etc/rc.d/"
79   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
80   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
81   
82   # Fix udev rule location
83   install -d -m755 "${pkgdir}/lib"
84   mv "${pkgdir}/etc/udev" "${pkgdir}/lib/"