1 # The GIT version of HAL. I made this one because HAL 0.5.14
2 # had some issues for me. Good luck!
4 # Contributor: Wintershade <Wintershade[no_spam]<AT>[no_spam]gmail<DOT>com>
8 pkgdesc="Hardware Abstraction Layer - the GIT version from freedesktop.org"
10 url="http://www.freedesktop.org/wiki/Software/hal"
13 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' 'consolekit>=0.4.1' 'util-linux-ng>=2.16')
14 makedepends=('pkgconfig' 'gperf' 'git')
15 provides=('hal=0.5.15')
23 md5sums=(277e96ac130d7bfce0b30f0b80db8782) #generate with 'makepkg -g'
25 _gitroot="git://anongit.freedesktop.org/hal"
30 msg "Connecting to GIT server...."
32 if [ -d $_gitname ] ; then
33 cd $_gitname && git pull origin
34 msg "The local files are updated."
36 git clone $_gitroot $_gitname
39 msg "GIT checkout done or server timeout"
40 msg "A little housekeeping..."
42 rm -rf "$srcdir/$_gitname-build"
43 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
44 cd "$srcdir/$_gitname-build"
46 msg "Starting the configure..." # I've just copy-pasted the configure options from the Arch stock hal PKGBUILD.
47 ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
48 --libexecdir=/usr/lib/hal --with-udev-prefix=/etc \
49 --enable-static=no --disable-acpi-ibm \
50 --disable-docbook-docs --disable-console-kit \
51 --disable-policy-kit --disable-acl-management \
52 --enable-umount-helper --disable-smbios \
53 --with-hal-user=hal --with-hal-group=hal \
54 --with-pid-file=/var/run/hald.pid || return 1
56 msg "Configure finished. Now running make. Good luck!"
58 make DESTDIR="${pkgdir}" install || return 1
59 install -m755 -d "${pkgdir}/etc/rc.d"
60 install -m755 -d "${pkgdir}/media" || return 1
61 install -m755 "${srcdir}/hal" "${pkgdir}/etc/rc.d/" || return 1
63 install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
64 install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1