aboutsummaryrefslogtreecommitdiff
path: root/audio/jack-keyboard
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2011-07-10 23:12:03 -0400
committerNiels Horn <niels.horn@slackbuilds.org>2011-07-14 21:54:03 -0300
commitc63767669409d0171e65740187b63b1656924b41 (patch)
tree8abec9f2e7b6f16d121b90e7fe6ba7e31ad6ff44 /audio/jack-keyboard
parentd74fdc7745011dc6b14c6d7c5e75ad3b40ad1301 (diff)
audio/jack-keyboard: Added (virtual MIDI keyboard)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'audio/jack-keyboard')
-rw-r--r--audio/jack-keyboard/README8
-rw-r--r--audio/jack-keyboard/doinst.sh10
-rw-r--r--audio/jack-keyboard/jack-keyboard.SlackBuild81
-rw-r--r--audio/jack-keyboard/jack-keyboard.info10
-rw-r--r--audio/jack-keyboard/slack-desc19
5 files changed, 128 insertions, 0 deletions
diff --git a/audio/jack-keyboard/README b/audio/jack-keyboard/README
new file mode 100644
index 0000000000000..61d10621975ab
--- /dev/null
+++ b/audio/jack-keyboard/README
@@ -0,0 +1,8 @@
+jack-keyboard (virtual MIDI keyboard)
+
+jack-keyboard is a virtual MIDI keyboard - a program that allows you to
+send JACK MIDI events (play ;-) using your PC keyboard. It's somewhat
+similar to vkeybd, except it uses JACK MIDI instead of ALSA, and the
+default keyboard mapping is much better - it uses the same layout as
+trackers (like Impulse Tracker) did, so you have two and half octaves
+under your fingers.
diff --git a/audio/jack-keyboard/doinst.sh b/audio/jack-keyboard/doinst.sh
new file mode 100644
index 0000000000000..1f8ff67dedb29
--- /dev/null
+++ b/audio/jack-keyboard/doinst.sh
@@ -0,0 +1,10 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
diff --git a/audio/jack-keyboard/jack-keyboard.SlackBuild b/audio/jack-keyboard/jack-keyboard.SlackBuild
new file mode 100644
index 0000000000000..bb46a1e122428
--- /dev/null
+++ b/audio/jack-keyboard/jack-keyboard.SlackBuild
@@ -0,0 +1,81 @@
+#!/bin/sh
+
+# Slackware build script for jack-keyboard
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+PRGNAM=jack-keyboard
+VERSION=${VERSION:-2.5}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+
+make
+make install-strip DESTDIR=$PKG
+
+gzip -9 $PKG/usr/man/man1/$PRGNAM.1
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING NEWS README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+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}
diff --git a/audio/jack-keyboard/jack-keyboard.info b/audio/jack-keyboard/jack-keyboard.info
new file mode 100644
index 0000000000000..dbc13d324afa5
--- /dev/null
+++ b/audio/jack-keyboard/jack-keyboard.info
@@ -0,0 +1,10 @@
+PRGNAM="jack-keyboard"
+VERSION="2.5"
+HOMEPAGE="http://jack-keyboard.sourceforge.net/"
+DOWNLOAD="http://downloads.sourceforge.net/project/jack-keyboard/jack-keyboard/2.5/jack-keyboard-2.5.tar.gz"
+DOWNLOAD_x86_64=""
+MD5SUM="030a666f1703ef1ab3eae6004cb04a9a"
+MD5SUM_x86_64=""
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
+APPROVED="dsomero"
diff --git a/audio/jack-keyboard/slack-desc b/audio/jack-keyboard/slack-desc
new file mode 100644
index 0000000000000..3a16b6ec66766
--- /dev/null
+++ b/audio/jack-keyboard/slack-desc
@@ -0,0 +1,19 @@
+# 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------------------------------------------------------|
+jack-keyboard: jack-keyboard (virtual MIDI keyboard)
+jack-keyboard:
+jack-keyboard: jack-keyboard is a virtual MIDI keyboard - a program that allows
+jack-keyboard: you to send JACK MIDI events (play ;-) using your PC keyboard. It's
+jack-keyboard: somewhat similar to vkeybd, except it uses JACK MIDI instead of ALSA,
+jack-keyboard: and the default keyboard mapping is much better - it uses the same
+jack-keyboard: layout as trackers (like Impulse Tracker) did, so you have two and
+jack-keyboard: half octaves under your fingers.
+jack-keyboard:
+jack-keyboard:
+jack-keyboard: