#!/bin/sh # Heavily based on the Slackware 11.0 SlackBuild # http://www.songbirdnest.com # Packager Andrea Sciucca ( gohanz at infinito.it) # http://www.slacky.it # # Required: Gst-plugins-base-0.10.7, Gstreamer-0.10.8 # Required: Gst-plugins-good, Gst-plugins-ugly, Gst-Plugins-bad CWD=`pwd` TMP=${TMP:-/tmp/tgz} PKG=$TMP/package/Songbird NAME=songbird VERSION=0.2.5 SVERSION=_0_2_5_linux ARCH=${ARCH:-i686} BUILD=1as SOURCE=http://download.songbirdnest.com/installer/linux/i686/Songbird$SVERSION-i686.tar.gz if [ ! -e Songbird$SVERSION-i686.tar.gz ]; then wget -c $SOURCE fi if [ ! -d $TMP ]; then mkdir -p $TMP fi mkdir -p $PKG/usr/lib ( cd $PKG/usr/lib tar xvzf $CWD/Songbird$SVERSION-i686.tar.gz cd Songbird zcat $CWD/songbird-prefs.diff.gz | patch -p1 --verbose ) mkdir -p $PKG/usr/bin ( cd $PKG/usr/bin ln -sf /usr/lib/Songbird/Songbird . ) mkdir -p $PKG/usr/doc/$NAME-$VERSION mkdir -p $PKG/usr/share/applications cat << EOF > $PKG/usr/share/applications/$NAME.desktop [Desktop Entry] Encoding=UTF-8 Exec=Songbird Icon=/usr/lib/Songbird/chrome/icons/default/default.xpm Type=Application Categories=Application;AudioVideo; Name=Songbird GenericName=Web Player Comment=Songbird Media Player Mozilla based! MimeType=text/html X-KDE-StartupNotify=true EOF mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/usr/doc/$NAME-$VERSION/slack-desc cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild cd $PKG 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