#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-cdparanoia VERSION=III-10.1 VER=III10.1 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf cdparanoia-$VERSION tar xzf $CWD/cdparanoia-$VERSION.src.tgz cd cdparanoia-$VERSION ./configure \ --prefix=/usr \ --build=$TARGET || exit 1 make || exit install -d -m 0755 $PKG/usr/doc/cdparanoia-III-10.1 install -m 0644 ./README ./COPYING-GPL ./COPYING-LGPL $PKG/usr/doc/cdparanoia-III-10.1 install -d -m 0755 $PKG/usr/bin install -m 0755 ./cdparanoia $PKG/usr/bin install -d -m 0755 $PKG/usr/man/man1 install -m 0644 ./cdparanoia.1 $PKG/usr/man/man1 install -d -m 0755 $PKG/usr/include install -m 0644 ./paranoia/cdda_paranoia.h $PKG/usr/include install -d -m 0755 $PKG/usr/lib install -m 0755 ./paranoia/libcdda_paranoia.so.0.10.0 $PKG/usr/lib install -m 0644 ./paranoia/libcdda_paranoia.a $PKG/usr/lib install -m 0644 ./interface/cdda_interface.h $PKG/usr/include install -m 0755 ./interface/libcdda_interface.so.0.10.0 $PKG/usr/lib install -m 0644 ./interface/libcdda_interface.a $PKG/usr/lib install -m 0644 ./utils.h $PKG/usr/include cd $PKG/usr/lib ; ln -fs libcdda_interface.so.0.10.0 libcdda_interface.so.0 cd $PKG/usr/lib ; ln -fs libcdda_interface.so.0.10.0 libcdda_interface.so cd $PKG/usr/lib ; ln -fs libcdda_paranoia.so.0.10.0 libcdda_paranoia.so.0 cd $PKG/usr/lib ; ln -fs libcdda_paranoia.so.0.10.0 libcdda_paranoia.so gzip -9 $PKG/usr/man/man1/* ( cd $PKG find . -type f | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . -type f | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/cdparanoia-$VER-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/cdparanoia.build.log