SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Recently I was looking for programs to use with my guitar and found rackarrack-plus (https://github.com/Stazed/rakarrack-plus), a fork of rakarrack.
I used the rackarrack scripts (from SBo) and modified them to get rackarrack-plus compiled. I don't know shell language and any comments or hints would be very welcome!
edit: I forgot to comment: The script is working!
rakarrack-plus.SlackBuild
Code:
#!/bin/bash
# Slackware build script for rakarrack-plus
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# RACKARRACK-PLUS 1.2.1
# Additional features, enhancements:
# * Add additional extra sfx banks.
# * Add tool tip for User Directory and default user bank Browse buttons.
# * Fix segfault when invalid bank vector access (only occurred when running uninstalled)
# * Set default User directory to blank instead of DATADIR.
# * Use choice button instead of fl_choice for export items.
# * Change terminal message when no custom user directory is set.
# * Change default active bank on new installations to Default.rkrb.
# * Add Carla preset export for single preset items.
# * Fix off by one display for sequence range.
# * Don't require worker for MIDIConverter. Thanks to Florian Hulsmann.
# * Check for python dependency if BuildCarlaPresets is ON.
# * Fix MIDIConverter URID map feature requirement per lv2lint.
# * Fix Lv2lint warning about unique scale point labels.
# * Update InsertPresets.rkis.
# * Add error check for insert preset name, invalid character.
# * Help updates.
# * Add extra SFX banks.
# * Set some minor error messages off if user requests.
# * Add error checking for duplicate insert preset names.
# * Fix insert merge preset to eliminate duplicate names.
# * Handle unused banks in sorting, place last.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=rakarrack-plus
VERSION=${VERSION:-1.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_svdo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -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 -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
sed -i "/Icon=/s,=.*,=$PRGNAM," data/$PRGNAM.desktop
# Configure and build rakarrack-plus
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBuildCarlaPresets=ON \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
cd ..
gzip $PKG/usr/share/man/man1/*.?
rm -rf $PKG/usr/share/pixmaps/*
for px in 32 64 128; do
size=${px}x${px}
dir=$PKG/usr/share/icons/hicolor/$size/apps
mkdir -p $dir
cp -a icons/icono_rakarrack-plus_$size.png $dir/$PRGNAM.png
done
mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps
convert -resize 48x48 \
icons/icono_rakarrack-plus_128x128.png \
$PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png
ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog 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
If you're looking for guitar amp simulators there's also 'guitarix' (guitarix.org). You can build it from SBo, or alienBOB also has it and all the deps in package format. The effects and amps also work as plugins in a daw, so you can record and work with audio that way. The standalone application has some okay presets also, if you just want to play into headphones or something.
I already use guitarix and other programs packaged by alienBob! My intention was just to share rakarrack-plus, since it provides other tone possibilities. In addition, it is possible to combine the timbres of the 2 programs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.