IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.1.0 PROGNAME="flac $VERSION" DESC="\ flac (Free Lossless Audio Codec) \n\ \n\ FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, \n\ FLAC is similar to MP3, but lossless. "Free" means that the \n\ specification of the stream format is in the public domain, and that \n\ neither the FLAC format nor any of the implemented encoding/decoding \n\ methods are covered by any patent. It also means that the sources for \n\ libFLAC and libFLAC++ are available under the LGPL and the sources for \n\ flac, metaflac, and the plugins are available under the GPL. \n\ \n\ FLAC was developed by Josh Coalson." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/flac PKGNAME=flac-$VERSION-s390-$BUILD TAG=OPT compile() { tar -zxvf $CWD/flac-$VERSION.tar.gz cd flac-$VERSION/ zcat $CWD/flac.man.diff.gz | patch -p1 --verbose --backup --suffix=.orig chown -R root.root . find . -perm 777 | xargs chmod 755 CFLAGS=-O2 CXXFLAGS=-O2 \ ./configure --prefix=/usr \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { cd $TMP/flac-$VERSION/ make install DESTDIR=/package-flac # Fix a stupid security exposure introduced by libtool being brain dead ( cd /package-flac/usr/lib/xmms/Input/ sed -e 's%-L/tmp/[[:graph:]]* % %g' libxmms-flac.la > libxmms-flac.la.new cat libxmms-flac.la.new > libxmms-flac.la rm libxmms-flac.la.new ) # Adjust docs to traditional Slackware location: mv /package-flac/usr/share/doc /package-flac/usr rm /package-flac/usr/doc/flac-$VERSION/FLAC.tag mv /package-flac/usr/doc/flac-$VERSION/html/* /package-flac/usr/doc/flac-$VERSION rmdir /package-flac/usr/doc/flac-$VERSION/html # we're not putting 3MB of API docs in the binary package... ( cd /package-flac/usr/doc/flac-$VERSION/api && rm -r * ) cat << EOF > /package-flac/usr/doc/flac-$VERSION/api/README Full HTML based API documentation may be found in the FLAC source package. It is not included in the binary package due to size. EOF # Add a few more docs: cp -a AUTHORS COPYING* README /package-flac/usr/doc/flac-$VERSION ( cd /package-flac/usr/man/man1 rm -f *.gz gzip -9 *.1 ) } attributes() { chown -R root.bin $PKG/package-flac/usr/bin/ chmod 664 $PKG/package-flac/usr/doc/flac-$VERSION/COPYING* } special() { cd $PKG mv package-flac/* ./ rmdir package-flac cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-flac/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }