#!/bin/sh # Copyright 2008 Loris Vincenzi (http://www.slacky.eu) # All rights reserved. # # Heavily based on the Slackware 12.1 SlackBuild # Requirements: libdv, ffmpeg, xvidcore, a52, libraw1394, libdc1394, libavc1394, libquicktime, # lame, dvdauthor, libdvdread, libdvdcss, imlib2, libtheora, faad2, faac, id3lib, mjpegtools # http://qdvdauthor.sourceforge.net/ # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. CWD=`pwd` TMP=${TMP:-/tmp/tgz} PKG=$TMP/package NAME=qdvdauthor VERSION=1.5.0 ARCH=${ARCH:-i686} BUILD=1sl if [ ! -d $TMP ]; then mkdir -p $TMP fi if [ ! -d $PKG ]; then mkdir -p $PKG fi cd $TMP tar xzvf $CWD/$NAME-$VERSION.tar.gz cd $NAME-$VERSION chown -R root:root . find . \( -perm 777 -o -perm 775 -o -perm 711 \) -exec chmod 755 {} \; find . \( -perm 700 -o -perm 555 -o -perm 511 \) -exec chmod 755 {} \; find . \( -perm 666 -o -perm 664 -o -perm 600 \) -exec chmod 644 {} \; find . \( -perm 444 -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; ./configure --prefix=/usr \ --debug=no \ --build-qplayer \ --build-qslideshow \ --with-xine-support qmake make mkdir -p $PKG/usr/bin cp bin/* $PKG/usr/bin 2> /dev/null mkdir -p $PKG/usr/doc/$NAME-$VERSION/SlackBuild cp -a CHANGELOG COPYING INSTALL README TODO doc $PKG/usr/doc/$NAME-$VERSION mkdir -p $PKG/usr/share/qdvdauthor cp qdvdauthor/i18n/*.qm $PKG/usr/share/qdvdauthor mkdir -p $PKG/usr/share/pixmaps cp qdvdauthor.png $PKG/usr/share/pixmaps mkdir -p $PKG/usr/share/applications cp qdvdauthor.desktop $PKG/usr/share/applications mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/usr/doc/$NAME-$VERSION/SlackBuild/slack-desc cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/SlackBuild/$NAME.SlackBuild cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ADD="a52dec >= 0.7.4-i486-1sl, \ dvdauthor >= 0.6.14-i486-1sl, \ faac >= 1.26-i486-1sl, \ faad2 >= 2.6.1-i486-1sl, \ ffmpeg >= 20080508-i686-1sl, \ id3lib >= 3.8.3-i486-1sl, \ imlib2 >= 1.4.0-i486-1sl, \ lame >= 3.97-i486-1sl, \ libavc1394 >= 0.5.3-i486-2sl, \ libdc1394 >= 2.0.2-i486-1sl, \ libdv >= 1.0.0-i486-1sl, \ libdvdcss >= 1.2.9-i486-1sl, \ libdvdread >= 0.9.7-i486-1sl, \ libdvdcss >= 1.2.9-i486-1sl, \ libdvdread >= 0.9.7-i486-1sl, \ libquicktime >= 20080508-i486-1sl, \ libraw1394 >= 1.3.0-i486-1sl, \ libtheora >= 1.0beta2-i486-1, \ mjpegtools >= 1.9.0rc3-i486-2sl, \ xvidcore >= 1.1.3-i486-1sl" \ requiredbuilder -v -y -s $CWD $PKG makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tgz if [ "$1" = "--cleanup" ]; then rm -rf $TMP fi