mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
audio/jack-keyboard: Updated for version 2.7.1.
This commit is contained in:
parent
f100798b1e
commit
e93421ce4f
4 changed files with 43 additions and 18 deletions
|
@ -6,3 +6,9 @@ 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.
|
||||
|
||||
This package uses POSIX filesystem capabilities to execute with
|
||||
elevated privileges (required for realtime audio processing). This
|
||||
may be considered a security/stability risk. Please read
|
||||
http://www.slackbuilds.org/caps/ for more information. To disable
|
||||
capabilities, pass SETCAP=no to the script.
|
||||
|
|
|
@ -6,8 +6,17 @@
|
|||
|
||||
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
||||
|
||||
# 20170216 bkw:
|
||||
# - Updated for v2.7.1. Apparently, upstream released 2.7.1 in 2012, but
|
||||
# never got around to updating their web page, which still says that
|
||||
# 2.5 is the latest release. It took me this long (5 years!) to notice
|
||||
# there was a newer version on their sourceforge download page. Note
|
||||
# that 2.5 used autotools but 2.7.1 uses cmake, so this script can no
|
||||
# longer be used to build the old version.
|
||||
# - Add capability stuff.
|
||||
|
||||
PRGNAM=jack-keyboard
|
||||
VERSION=${VERSION:-2.5}
|
||||
VERSION=${VERSION:-2.7.1}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -53,31 +62,40 @@ find -L . \
|
|||
\( -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
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake \
|
||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
|
||||
-DMAN_INSTALL_DIR=/usr/man \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
cd ..
|
||||
|
||||
make
|
||||
make install-strip DESTDIR=$PKG
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
strip $PKG/usr/bin/$PRGNAM
|
||||
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
|
||||
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
|
||||
|
||||
# Only add capability stuff if not disabled:
|
||||
if [ "${SETCAP:-yes}" = "yes" ]; then
|
||||
cat $CWD/setcap.sh >> $PKG/install/doinst.sh
|
||||
# Only allow execution by audio group
|
||||
chown root:audio $PKG/usr/bin/$PRGNAM
|
||||
chmod 0750 $PKG/usr/bin/$PRGNAM
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="jack-keyboard"
|
||||
VERSION="2.5"
|
||||
VERSION="2.7.1"
|
||||
HOMEPAGE="http://jack-keyboard.sourceforge.net/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/project/jack-keyboard/jack-keyboard/2.5/jack-keyboard-2.5.tar.gz"
|
||||
MD5SUM="030a666f1703ef1ab3eae6004cb04a9a"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/project/jack-keyboard/jack-keyboard/2.7.1/jack-keyboard-2.7.1.tar.gz"
|
||||
MD5SUM="b89c9ac03e850ad1aa8b33ff62ea06a8"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="jack-audio-connection-kit"
|
||||
|
|
1
audio/jack-keyboard/setcap.sh
Normal file
1
audio/jack-keyboard/setcap.sh
Normal file
|
@ -0,0 +1 @@
|
|||
[ -x /sbin/setcap ] && /sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/jack-keyboard
|
Loading…
Reference in a new issue