blob: d84312f4b1e83e9af136f66d3a99047bb65b3460 (
plain)
1 # Description: Hardware Abstraction Layer
2 # URL: http://www.freedesktop.org/wiki/Software/hal
3 # Packager: Matt Housh, jaeger at crux dot nu
4 # Maintainer: Jose V Beneyto, sepen at crux dot nu
5 # Depends on: dbus-glib, hal-info
6
7 name=hal
8 version=0.5.14
9 release=3
10 source=(http://hal.freedesktop.org/releases/$name-$version.tar.bz2 \
11 hal.conf rc.hald)
12
13 build() {
14 cd $name-$version
15
16 sed -i $(find . -type f -name '*.c' -or -name '*.h') \
17 -e 's|<glib/.*\.h>|<glib.h>|g'
18 sed -i -e 's/USE_NLS=yes/USE_NLS=no/' \
19 -e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
20
21 ./configure --prefix=/usr \
22 --mandir=/usr/man \
23 --libexecdir=/usr/lib/$name \
24 --localstatedir=/var \
25 --with-hal-user=haldaemon \
26 --with-hal-group=haldaemon \
27 --with-dbus-sys=/usr/etc/dbus-1/system.d \
28 --with-udev-prefix=/lib \
29 --with-hwdata=/usr/share \
30 --disable-policy-kit \
31 --disable-console-kit
32
33 sed -i -e '/device-manager/d' tools/Makefile
34 sed -i hald/linux/probing/Makefile \
35 -e 's|bluetooth$(EXEEXT) \\|bluetooth$(EXEEXT)|' \
36 -e 's|hald-probe-video4linux$(EXEEXT)||'
37
38 make
39 make DESTDIR=$PKG install
40
41 install -D -o root -g root -m 0755 $SRC/rc.hald \
42 $PKG/etc/rc.d/hald
43 rm -rf $PKG/usr/share/{doc,locale}
44 rm -rf $PKG/usr/share/gtk-doc
45 cp $SRC/hal.conf $PKG/usr/etc/dbus-1/system.d/
46 mkdir -p $PKG/var/lib/hal
47 chown haldaemon:haldaemon $PKG/var/lib/hal
48 }
|