#!/bin/sh # This is a Slackbuild designed to make a Vector Linux package, # I stole it from slacky.eu, credits for the original to # Gohanz ( gohanz@infinito.ii) # The VL Slackbuild is brought to you by # The Headacher (theheadacher{at}gmail[dot]com) CWD=`pwd` if ["$TMP" = ""]; then TMP=/tmp fi PKG=$TMP/package-qjackctl NAME=qjackctl VERSION=0.2.22 ARCH=i586 BUILD=1vl58 CFLAGS="-O2 -march=i586 -mtune=i686" if [ ! -d $TMP ]; then mkdir -p $TMP fi if [ ! -d $PKG ]; then mkdir -p $PKG fi cd $TMP tar xvzf $CWD/$NAME-$VERSION.tar.gz cd $NAME-$VERSION ./configure --prefix=/usr \ --program-prefix="" \ --program-suffix="" \ make make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/$NAME-$VERSION cp -a AUTHORS COPYING ChangeLog INSTALL README TODO $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------------------------------------------------------| qjackctl: qjackctl (application to control the JACK sound server daemon) qjackctl: qjackctl: Qjackctl provides a simple GUI dialog for setting several qjackctl: of JACK daemon parameters, which are saved between sessions. qjackctl: The most important feature of qjackctl is that it allows you to qjackctl: easily connect programs that use jack to eachother. qjackctl: It also shows some info about the status of jackd qjackctl: qjackctl: Website: http://qjackctl.sourceforge.net qjackctl: License: GNU gpl v2 qjackctl: Authors: Rui Nuno Capela #---------------------------------------- BUILDDATE: `date` PACKAGER: The Headacher HOST: `uname -srm` DISTRO: `cat /etc/vector-version` CFLAGS: '$CFLAGS' CONFIGURE: `awk "/\.\/configure\ /" $TMP/$NAME-$VERSION/config.log` EOF mkdir -p $PKG/usr/share/applications/ cat > $PKG/usr/share/applications/qjackctl.desktop << EOF [Desktop Entry] Name=Qjackctl GenericName=Jack Audio Control Comment=A Qt GUI for Jack Audio Exec=qjackctl Terminal=false Type=Application Icon=/usr/share/icons/qjackctl.png Categories=QT;KDE;AudioVideo;Audio Encoding=UTF-8 EOF cd $CWD cp qjackctl.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