opt/hal/Pkgfile

29 lines
766 B
Plaintext
Raw Normal View History

# Description: Hardware Abstraction Layer
# URL: http://freedesktop.org/wiki/Software_2fhal
# Maintainer: Matt Housh, jaeger at crux dot nu
# Depends on: dbus
name=hal
version=0.5.7
release=1
source=(http://freedesktop.org/~david/dist/$name-$version.tar.gz \
rc.hald)
build() {
cd $name-$version
sed -i -e 's/USE_NLS=yes/USE_NLS=no/' \
-e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
./configure --prefix=/usr \
--libexecdir=/usr/lib/$name \
--localstatedir=/var \
--with-hal-user=haldaemon \
--with-hal-group=haldaemon \
--with-dbus-sys=/usr/etc/dbus-1/system.d
sed -i -e '/device-manager/d' tools/Makefile
make
make DESTDIR=$PKG install
install -D -o root -g root -m 0755 $SRC/rc.hald \
$PKG/etc/rc.d/hald
rm -rf $PKG/usr/share/{doc,locale}
}