#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-dvd+rw-tools VERSION=7.1 ARCH=alpha BUILD=1 rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf dvd+rw-tools-$VERSION tar xzf $CWD/dvd+rw-tools-$VERSION.tar.gz cd dvd+rw-tools-$VERSION chown -R root.root . zcat $CWD/dvd+rw-tools.limits.h.diff.gz | patch -p1 --verbose || exit 1 make || exit mkdir -p $PKG/usr/bin cat dvd+rw-booktype > $PKG/usr/bin/dvd+rw-booktype cat dvd+rw-format > $PKG/usr/bin/dvd+rw-format cat dvd+rw-mediainfo > $PKG/usr/bin/dvd+rw-mediainfo cat dvd-ram-control > $PKG/usr/bin/dvd-ram-control cat growisofs > $PKG/usr/bin/growisofs strip $PKG/usr/bin/* chmod 755 $PKG/usr/bin/* chown -R root.bin $PKG/usr/bin mkdir -p $PKG/usr/man/man1 cat growisofs.1 | gzip -9c > $PKG/usr/man/man1/growisofs.1.gz mkdir -p $PKG/usr/doc/dvd+rw-tools-$VERSION cp -a index.html $PKG/usr/doc/dvd+rw-tools-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/dvd+rw-tools-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/dvd.build.log