IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src
STRIPLIB=y
STRIPBIN=y

VERSION=2.40
PROGNAME="workbone $VERSION"
DESC="\
workbone (text-based CD player)                                        \n\
                                                                       \n\
WorkBone is a simple interactive tool for for playing audio CDs from   \n\
the Linux console."

BUILD=1
MAINTAINER="Mark Post <mark.post@eds.com>"
SOURCE=???
PKGNAME=workbone-$VERSION-s390-$BUILD
TAG=OPT

compile() {
   tar -zxvf $CWD/workbone_$VERSION.orig.tar.gz
   cd workbone-2.4/
   zcat $CWD/workbone_$VERSION-3.diff.gz | patch -p1
   zcat $CWD/workbone.1.diff.gz | patch -p1 --verbose

   make
}

install() {
   mkdir -p /package-workbone/usr/bin
   cp -a workbone /package-workbone/usr/bin/workbone
#  cat workbone > /package-workbone/usr/bin/workbone
#  chmod 755 /package-workbone/usr/bin/workbone

   mkdir -p /package-workbone/usr/man/man1
   cat workbone.1 | gzip -9c > /package-workbone/usr/man/man1/workbone.1.gz

   mkdir -p /package-workbone/usr/doc/workbone-$VERSION
   cp -a README /package-workbone/usr/doc/workbone-$VERSION
}

attributes() {
   chown -R root.bin $PKG/package-workbone/usr/bin
}

special() {
   cd $PKG
   mv package-workbone/* ./
   rmdir package-workbone

   cd $CTL
   cat $CWD/slack-desc > slack-desc
   sed -e 's%package-workbone/%%' doinst.sh > doinst.sh.new
   cat doinst.sh.new > doinst.sh
   rm doinst.sh.new
}

