#!/bin/sh [ -z $PREPKG ] && exit 1 # notes: # CFLAGS are inherited from the last kernel built in /usr/src/linux/ # 1.0.7 & later broke something with 'make -j N'. use 'make -i -j N' for now PACKAGE=alsa-driver VERSION=1.0.13 KERNELRELEASE=$(uname -r) FILES=$(cd $(dirname $0) ; pwd) mkdir -p $PREPKG/{install,usr/doc/$PACKAGE-$VERSION/alsa-kernel}/ #chown -R root:root . ./configure \ --with-isapnp=yes \ --with-oss=yes \ --with-sequencer=yes \ i486-slackware-linux &> configure.output || exit 1 make -i $MAKEJOBS &> make.output || exit 1 make DESTDIR=$PREPKG install &> make_install.output || exit 1 rm $PREPKG/lib/modules/$KERNELRELEASE/modules.* find $PREPKG/lib/modules/ -type f -name '*.o' -exec gzip -9 {} \; cp -a alsa-kernel/Documentation/ \ $PREPKG/usr/doc/$PACKAGE-$VERSION/alsa-kernel/ cp -a doc/ CARDS-STATUS COPYING FAQ INSTALL README TODO WARNING \ $PREPKG/usr/doc/$PACKAGE-$VERSION/ cat << EOF > $PREPKG/install/doinst.sh # A good idea whenever kernel modules are added or changed: if [ -x sbin/depmod ]; then chroot . /sbin/depmod -a $KERNELRELEASE 1> /dev/null 2> /dev/null fi EOF cp $FILES/slack-desc $PREPKG/install/