#Maintainer: George Vlahavas (vlahavas@gmail.com, gapan@zenwalk forums) pkgname=hal pkgver=0.5.10 pkgrel=2 zenver=50 arch=i486 source=("http://hal.freedesktop.org/releases/hal-0.5.10.tar.gz" "http://users.zenwalk.org/user-accounts/gapan/hal/rc.hal" "http://users.zenwalk.org/user-accounts/gapan/hal/hal.txt" "http://users.zenwalk.org/user-accounts/gapan/hal/zen-users.patch") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "hacking") url=http://www.freedesktop.org/wiki/Software/hal options=('norequiredbuilder' 'keepdepfile') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "hal - Hardware Abstraction Layer" "HAL is a hardware abstraction layer, which is a piece of software that" "provides a view of the various hardware attached to a system. In" "addition to this, HAL keeps detailed metadata for each piece of" "hardware and provides hooks such that system and desktop-level" "software can react to changes in the hardware configuration in order" "to maintain system policy." ) build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-os-type=slackware --disable-policy-kit --with-hal-user=daemon --with-hal-group=daemon --enable-sonypic --with-hwdata=/usr/share --with-cpufreq --with-usb-csr --without-dell-backlight --enable-man-pages make || return 1 make install DESTDIR=$startdir/pkg # init script (enabled by default) mkdir -p $startdir/pkg/etc/rc.d cp $startdir/src/rc.hal $startdir/pkg/etc/rc.d chmod a+x $startdir/pkg/etc/rc.d/rc.hal # create desc.d file mkdir -p $startdir/pkg/etc/rc.d/desc.d cp $startdir/src/hal.txt $startdir/pkg/etc/rc.d/desc.d # enable communication with the messagebus for group users, but allow root as well :P cd $startdir/pkg/etc/dbus-1/system.d patch -p0<$startdir/src/zen-users.patch # create media directory mkdir -p $startdir/pkg/media chmod 777 $startdir/pkg/media }