IGNOREPATH=/boot:/cdrom:/dev:/home:/mnt:/proc:/root:/tmp:/var/ax25:/var/log:/var/spool/cron
STRIPLIB=y
STRIPBIN=y

# pkginfo
VERSION=2.4.3
PROGNAME=aprsdigi
DESC="Aprsdigi is a specialized Amateur Packet Radio (AX.25)\n\
UI-frame digipeater for the Automatic Position Reporting \n\
Systems, APRS(tm).\n\
\n\
Aprsmon collects and displays standard AX.25 UI text\n\
frames in a format similar to that output by a standard\n\
TNC in \"Monitor ON\" mode and is intended to be used with\n\
programs like javAPRS which wish to see a TNC data\n\
stream over a TCP connection.\n\
\n\
Aprsdigi is developed by Alan Crosswell <n2ygk@weca.org>"


# maintainer
ARCH=i486
BUILD=1
MAINTAINER="Arno Verhoeven <pe1icq@sharon.esrac.ele.tue.nl>"
SOURCE="http://www.users.cloud9.net/~alan/ham/aprs/"
LOCATION="http://sharon.esrac.ele.tue.nl/pub/linux/slackware-current/extra/ham/"

# package name
PKGNAME=$PROGNAME-$VERSION-$ARCH-$BUILD

compile() {
   tar zxvf $CWD/$PROGNAME-$VERSION.tar.gz
   zcat $CWD/$PROGNAME-$VERSION.diff.gz | patch -p0 --verbose
   cd $PROGNAME-$VERSION
   ./configure --prefix=/usr
   make
}

install() {
   cd $TMP/$PROGNAME-$VERSION
   make install
   mkdir -p /usr/doc/$PROGNAME-$VERSION
   cp AUTHORS ChangeLog INSTALL NEWS README TODO aprs*.html *.lsm /usr/doc/$PROGNAME-$VERSION
}

special() {
   # Generate a slack-desc file
 
   # output the package name first
   for a in 1 2 3 4 5 6 7 8 9 10 11
   do
      echo "$PROGNAME:" >> $TMP/leftside
   done
 
   # now place the description in a file
   echo -e "$DESC" > $TMP/rightside
 
   # combine the two
   paste -d ' ' $TMP/leftside $TMP/rightside > $CTL/slack-desc
   rm -rf $TMP/leftside $TMP/rightside
}

subpacks() {
   echo "no sub-packages..."
}
