#!/bin/bash #NEED:linux_src #DEP:udev NAME=lm_sensors VER=3.1.2 TARNAME=lm_sensors-$VER CWD=`pwd` PKGTMP=/tmp/pkgtmp mkdir -p $PKGTMP &>/dev/null tar -xjf $TARNAME.tar.bz2 || exit 1 mkdir -p $PKGTMP/usr/share/man/man8 #hack voor deze stomme makefile #mkdir -p /lib/modules/`uname -r` || exit 1 #ln -s /usr/src/linux /lib/modules/`uname -r`/build || exit 1 cd $TARNAME || exit 1 #mkdir -p $PKGTMP/etc/udev/rules.d || exit 1 #./build_tools/genudevrules > $PKGTMP/etc/udev/rules.d/zaptel.rules || exit 1 #patch om genmod iets druit te slopen #patch -p0 < ../Makefile.patch || exit 1 #make -j1 clean || exit 1 #./configure || exit 1 make -j1 || exit 1 make -j1 DESTDIR=$PKGTMP install || exit 1 #genconfig meuk #cp $CWD/genzaptelconf $PKGTMP/sbin || exit 1 #chmod +x $PKGTMP/sbin/* || exit 1 #boot scripts #mkdir $PKGTMP/etc/boot.d #cp $CWD/zaptel $PKGTMP/etc/boot.d || exit 1 #chmod +x $PKGTMP/etc/boot.d/* || exit 1 cd "$PKGTMP" || exit 1 makepkg -l y -c n $CWD/$NAME.pkg > /dev/null && echo $VER > $CWD/$NAME.version && arch > $CWD/$NAME.arch