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

VERSION=0.11.11
PROGNAME="k3b $VERSION"
DESC="\
k3b (The CD Creator)                                                   \n\
                                                                       \n\
K3b makes writing cds under Linux easy.  It has an easy to use         \n\
interface and supports CD burning (including on-the-fly), copying,     \n\
erasing, ripping, and more.                                            \n\
                                                                       \n\
K3b was written by Sebastian Trueg, Thomas Froescher,                  \n\
Christian Kvasny, and Klaus-Dieter Krannich.                           \n\
                                                                       \n\
For more information, visit:  http://www.k3b.org"

BUILD=1
MAINTAINER="Mark Post <mark.post@eds.com>"
SOURCE=ftp://ftp.gnu.org/pub/gnu/k3b
PKGNAME=k3b-$VERSION-s390-$BUILD
TAG=OPT

compile() {
   tar -yxvf $CWD/k3b-$VERSION.tar.bz2
   cd k3b-$VERSION/
   chown -R root.root .
   find . -perm 777 -exec chmod 755 {} \;
   find . -perm 664 -exec chmod 644 {} \;
   CFLAGS=-O2 \
   ./configure --prefix=/opt/kde \
               --program-prefix="" \
               --program-suffix="" \
               --build=s390-slackware-linux \
               --host=s390-slackware-linux \
               --target=s390-slackware-linux

   make
}

install() {
   make install DESTDIR=/package-k3b

   mkdir -p /package-k3b/usr/doc/k3b-$VERSION
   cp -a AUTHORS COPYING FAQ INSTALL README TODO k3b.lsm \
       /package-k3b/usr/doc/k3b-$VERSION
}

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

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

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

