IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=0.15.2b PROGNAME="madplay $VERSION" DESC="\ madplay (MPEG audio decoder and player) \n\ \n\ madplay is a command-line MPEG audio decoder and player based on the \n\ MAD library (libmad). For details about MAD, see the libmad package \n\ distributed separately. \n\ \n\ madplay was written by Robert Leslie." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.mars.org/pub/mpeg/ PKGNAME=madplay-$VERSION-s390-$BUILD TAG=OPT compile() { tar -zxvf $CWD/madplay-$VERSION.tar.gz cd madplay-$VERSION/ chown -R root.root . find . -perm 664 -exec chmod 644 {} \; CFLAGS=-O2 \ ./configure --prefix=/usr \ --disable-debugging \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { make install DESTDIR=/package-madplay mkdir -p /package-madplay/usr/doc/madplay-$VERSION cp -a CHANGES COPYING COPYRIGHT CREDITS README TODO VERSION \ /package-madplay/usr/doc/madplay-$VERSION ( cd /package-madplay/usr/man/man1 rm -f *.gz gzip -9 *.1 ) } attributes() { chown -R root.bin $PKG/package-madplay/usr/bin } special() { cd $PKG mv package-madplay/* ./ rmdir package-madplay cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-madplay/%%' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }