#!/bin/sh # This is a Slackbuild designed to make a Vector Linux package, # The VL Slackbuild is brought to you by # The Headacher (theheadacher{at}gmail[dot]com) CWD=`pwd` if ["$TMP" = ""]; then TMP=/tmp fi NAME=kaffeine VERSION=0.8.4 ARCH=i586 BUILD=2vl58 CFLAGS="-O2 -march=i586 -mtune=i686" PKG=$TMP/$NAME-package if [ ! -d $TMP ]; then mkdir -p $TMP fi if [ ! -d $PKG ]; then mkdir -p $PKG fi #make a symlink to kernel dvb headers so kaffeine finds them if [ ! -e /usr/include/linux/dvb ]; then ln -s /usr/src/linux-2.6.18.5/include/linux/dvb/ /usr/include/linux/dvb fi cd $TMP tar xvf $CWD/$NAME-$VERSION.tar.bz2 cd $NAME-$VERSION ./configure --prefix=/opt/kde \ --with-dvb \ make make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/$NAME-$VERSION cp -a A* COPYING R* T* V* $PKG/usr/doc/$NAME-$VERSION mkdir -p $PKG/install cat > $PKG/install/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------------------------------------------------------| kaffeine: kaffeine (multimedia player for KDE) kaffeine: kaffeine: Kaffeine is a full featured Multimedia-Player for KDE. kaffeine: By default it uses xine as backend. Kaffeine is free kaffeine: software distributed under the terms of the GNU kaffeine: General Public Licence. kaffeine: kaffeine: AUTHOR: Jurgen Kofler kaffeine: MAINTAINER: Christophe Thommeret kaffeine: HOME PAGE: http://kaffeine.sourceforge.net/ kaffeine: #---------------------------------------- BUILDDATE: `date` PACKAGER: The Headacher HOST: `uname -srm` DISTRO: `cat /etc/vector-version` CFLAGS: '$CFLAGS' CONFIGURE: `awk "/\.\/configure\ /" $TMP/$NAME-$VERSION/config.log` EOF #Make sure the .desktop file goes to /usr/share/applications #so it also shows up in xfce / gnome mkdir $PKG/usr/ mkdir $PKG/usr/share/ mkdir $PKG/usr/share/applications mv $PKG/opt/kde/share/applications/kde/kaffeine.desktop $PKG/usr/share/applications cd $CWD cp $NAME.SlackBuild $PKG/usr/doc/$NAME-$VERSION cd $PKG chown -R root:root . requiredbuilder -v -y -s $CWD $PKG makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tlz if [ "$1" = "--cleanup" ]; then rm -rf $TMP/$NAME-$VERSION rm -rf $PKG fi