#!/bin/sh # Heavily based on the Slackware 12.0 SlackBuild # http://kde-apps.org/content/show.php?content=38347 # Packagers Andrea Sciucca Gohanz ( gohanz@infinito.it) # http://www.slacky.it # Depends from: DVD Slideshow >= 0.7.5, Mencoder, Xine > 0.99.4, Lame >= 3.97, Dvdauthor >= 0.6.11 # Mjpegtools >= 1.8.0, Netpbm >= 10.29, Transcode >= 1.0.2, Dvd+rw-tools >= 5.21.4 CWD=`pwd` cd ../ RELEASEDIR=`pwd` cd $CWD mkdir $RELEASEDIR/tmp TMP=$RELEASEDIR/tmp PKG=$TMP/package-ManDVD NAME=mandvd VERSION=2.4 ARCH=${ARCH:-i686} BUILD=1vl60 if [ ! -d $TMP ]; then mkdir -p $TMP fi if [ ! -d $PKG ]; then mkdir -p $PKG fi cd $TMP tar xvzf $CWD/mandvd-2.4src.tar.gz cd ManDVD-2.4src find . -perm 777 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 555 -exec chmod 755 {} \; find . -perm 666 -exec chmod 644 {} \; find . -perm 664 -exec chmod 644 {} \; find . -perm 444 -exec chmod 644 {} \; qmake make mkdir -p $PKG/usr/bin cp -a mandvd $PKG/usr/bin mkdir -p $PKG/usr/doc/$NAME-$VERSION cd $CWD cp -a *.SlackBuild slack-desc $PKG/usr/doc/$NAME-$VERSION mkdir -p $PKG/usr/share/applications cp -a $CWD/mandvd.desktop $PKG/usr/share/applications mkdir -p $PKG/usr/share/pixmaps cp -a $TMP/ManDVD-2.4src/mandvdico.png $PKG/usr/share/pixmaps mkdir -p $PKG/usr/doc/$NAME-$VERSION cp -a AUTHORS COPYING ChangeLog README TODO $PKG/usr/doc/$NAME-$VERSION cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild find $PKG/usr/man -type f -exec gzip -9 {} \; mkdir -p $PKG/install # This creates the white space in front of "handy-ruler" in slack-desc below. LENGTH=`expr length "$NAME"` SPACES=0 SHIM="" until [ "$SPACES" = "$LENGTH" ]; do SHIM="$SHIM " let SPACES=$SPACES+1 done cat > $CWD/slack-desc << EOF # HOW TO EDIT THIS FILE: # The "handy ruler" below makes it easier to edit a package description. Line # up the first '|' above the ':' following the base package name, and the '|' # on the right side marks the last column you can put a character in. You must # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':'. |-----handy-ruler------------------------------------------------------| $NAME: $NAME (DVD authoring program) $NAME: $NAME: ManDVD aims to be an easy to use dvd authoring solutions for non geeks. $NAME: It makes the process of encoding, menu authoring and dvd burning seamless $NAME: and painless. $NAME: $NAME: License: GPL $NAME: Website: http://www.kde-apps.org $NAME: #---------------------------------------- BUILDDATE: `date` PACKAGER: $VL_PACKAGER HOST: `uname -srm` DISTRO: `cat /etc/vector-version` CFLAGS: $CFLAGS LDFLAGS: $LDFLAGS CONFIGURE: `awk "/\.\/configure\ /" $TMP/$NAME-$VERSION/config.log` EOF cat $CWD/slack-desc > $PKG/install/slack-desc strip --strip-unneeded $PKG/usr/bin/* cd $PKG chown -R root:root . requiredbuilder -y -v -s $CWD $PKG makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tlz rm -rf $TMP cd $CWD mv mandvd-2.4-i686-1vl60.tlz ../mandvd-2.4-i686-1vl60.tlz mv slack-required ../slack-required rm -rf $TMP rm -rf $CWD/slack-desck