blob: 590e4b6590edf4048ac524cf44d81811811f884f (
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=2
10 source=(http://hal.freedesktop.org/releases/$name-$version.tar.gz \
11 hal.conf rc.hald)
12
13 build() {
14 cd $name-$version
15 sed -i -e 's/USE_NLS=yes/USE_NLS=no/' \
16 -e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
17 ./configure --prefix=/usr \
18 --mandir=/usr/man \
19 --libexecdir=/usr/lib/$name \
20 --localstatedir=/var \
21 --with-hal-user=haldaemon \
22 --with-hal-group=haldaemon \
23 --with-dbus-sys=/usr/etc/dbus-1/system.d \
24 --with-udev-prefix=/lib \
25 --with-hwdata=/usr/share \
26 --disable-policy-kit \
27 --disable-console-kit
28 sed -i -e '/device-manager/d' tools/Makefile
29 make
30 make DESTDIR=$PKG install
31 install -D -o root -g root -m 0755 $SRC/rc.hald \
32 $PKG/etc/rc.d/hald
33 rm -rf $PKG/usr/share/{doc,locale}
34 rm -rf $PKG/usr/share/gtk-doc
35 cp $SRC/hal.conf $PKG/usr/etc/dbus-1/system.d/
36 mkdir -p $PKG/var/lib/hal
37 chown haldaemon:haldaemon $PKG/var/lib/hal
38 }
|