hal: fixed build issues and cleanup (FS#881)

This commit is contained in:
Jose V Beneyto 2013-01-28 14:41:34 +01:00
parent 564d496bc3
commit bd0b7b7c28
3 changed files with 13 additions and 4 deletions

View File

@ -65,7 +65,6 @@ drwxr-xr-x root/root usr/lib/hal/
-rwxr-xr-x root/root usr/lib/hal/hald-probe-serial
-rwxr-xr-x root/root usr/lib/hal/hald-probe-smbios
-rwxr-xr-x root/root usr/lib/hal/hald-probe-storage
-rwxr-xr-x root/root usr/lib/hal/hald-probe-video4linux
-rwxr-xr-x root/root usr/lib/hal/hald-probe-volume
-rwxr-xr-x root/root usr/lib/hal/hald-runner
drwxr-xr-x root/root usr/lib/hal/scripts/

View File

@ -1,3 +1,3 @@
e9163df591a6f38f59fdbfe33e73bf20 hal-0.5.14.tar.gz
c627d8fb0f9afff94f3c687b5216bc06 hal-0.5.14.tar.bz2
d8ce27a76d7cb13ce142cdc33816c8bd hal.conf
cc3d04e7ac09e15f33c530725f43e641 rc.hald

View File

@ -6,14 +6,18 @@
name=hal
version=0.5.14
release=2
source=(http://hal.freedesktop.org/releases/$name-$version.tar.gz \
release=3
source=(http://hal.freedesktop.org/releases/$name-$version.tar.bz2 \
hal.conf rc.hald)
build() {
cd $name-$version
sed -i $(find . -type f -name '*.c' -or -name '*.h') \
-e 's|<glib/.*\.h>|<glib.h>|g'
sed -i -e 's/USE_NLS=yes/USE_NLS=no/' \
-e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
./configure --prefix=/usr \
--mandir=/usr/man \
--libexecdir=/usr/lib/$name \
@ -25,9 +29,15 @@ build() {
--with-hwdata=/usr/share \
--disable-policy-kit \
--disable-console-kit
sed -i -e '/device-manager/d' tools/Makefile
sed -i hald/linux/probing/Makefile \
-e 's|bluetooth$(EXEEXT) \\|bluetooth$(EXEEXT)|' \
-e 's|hald-probe-video4linux$(EXEEXT)||'
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}