IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=12.17.4 PROGNAME="sox $VERSION" DESC="\ sox (universal sound sample translator) \n\ \n\ Sox is a universal sound converter, player, and recorder. It can \n\ play, record, and convert between several sound file formats such as \n\ .au, .snd, .voc and .wav." BUILD=1 MAINTAINER="Mark Post " SOURCE=http://sourceforge.net/projects/sox PKGNAME=sox-$VERSION-s390-$BUILD TAG=OPT compile() { tar -zxvf $CWD/sox-$VERSION.tar.gz cd sox-$VERSION/ ./configure --prefix=/usr \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { make install prefix=/package-sox/usr mkdir -p /package-sox/usr/doc/sox-$VERSION cp -a Changelog Copyright INSTALL README TODO \ /package-sox/usr/doc/sox-$VERSION ( cd /package-sox/usr/man/man1 rm -f *.gz gzip -9 *.1 ) ( cd /package-sox/usr/man/man1 rm -rf rec.1 ; ln -sf play.1.gz rec.1.gz rm -rf soxmix.1 ; ln -sf sox.1.gz soxmix.1.gz ) ( cd /package-sox/usr/bin rm -rf rec ; ln -sf play rec ) } attributes() { chown -R root.bin $PKG/package-sox/usr/bin } special() { cd $PKG mv package-sox/* ./ rmdir package-sox cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-sox/%%' -e 's%/package-sox/%%' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }