From 73146b17ea0b902af362ef285f5360b677f18e7d Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 26 Aug 2011 19:40:19 -0300 Subject: audio/fantasia: Added (Java-based GUI frontend for LinuxSampler) Signed-off-by: Niels Horn --- audio/fantasia/fantasia.SlackBuild | 63 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 audio/fantasia/fantasia.SlackBuild (limited to 'audio/fantasia/fantasia.SlackBuild') diff --git a/audio/fantasia/fantasia.SlackBuild b/audio/fantasia/fantasia.SlackBuild new file mode 100644 index 0000000000..cff3800d05 --- /dev/null +++ b/audio/fantasia/fantasia.SlackBuild @@ -0,0 +1,63 @@ +#!/bin/bash + +# Slackware build script for fantasia + +# Written by B. Watson (yalhcru@gmail.com) + +PRGNAM=fantasia +VERSION=${VERSION:-0.9} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +ARCH=noarch + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +SRCNAM=Fantasia + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION + +# Don't really need our own "source" dir, but it makes cleanup easier. +mkdir $PRGNAM-$VERSION +cd $PRGNAM-$VERSION + +# Jar file +mkdir -p $PKG/usr/{bin,share/$PRGNAM} +install -m0644 -oroot -groot $CWD/$SRCNAM-$VERSION.jar $PKG/usr/share/$PRGNAM + +# Shell script wrapper +cat < $PKG/usr/bin/$PRGNAM +#!/bin/sh +exec java -jar /usr/share/$PRGNAM/$SRCNAM-$VERSION.jar +EOF +chmod 0755 $PKG/usr/bin/$PRGNAM + +# Stick the icon where it goes +unzip -j $CWD/$SRCNAM-$VERSION.jar \ + org/jsampler/view/fantasia/res/icons/LinuxSampler-logo.png +mkdir -p $PKG/usr/share/pixmaps +install -m0644 -oroot -groot LinuxSampler-logo.png \ + $PKG/usr/share/pixmaps/$PRGNAM.png + +# .desktop file written by SlackBuild author +mkdir -p $PKG/usr/share/applications +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop + +# No real docs ship with this app, but here ya go: +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} -- cgit v1.2.3