#!/bin/bash VERSION=$1 # Extract source: cd $SLACKTRACKSCRATCHDIR tar xjvf $CWD/apsfilter-$VERSION.tar.bz2 cd apsfilter slackhousekeeping # Configure: CFLAGS="$ARCH_CFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc || failconfig # Build: make || failmake make install # Install docs: mv /usr/doc/apsfilter /usr/doc/$PACKAGE-$VERSION # This directory should not be present by default -- SETUP makes it. rm -rf /etc/apsfilter # Install package description: cd / slackdesc