LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-19-2022, 12:11 PM   #1
Sanvido
LQ Newbie
 
Registered: Aug 2019
Location: Campinas - SP - Brazil
Distribution: Slackware
Posts: 11

Rep: Reputation: Disabled
rakarrack-plus


Hello.

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

Last edited by Sanvido; 05-19-2022 at 12:20 PM.
 
Old 05-20-2022, 09:49 PM   #2
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 766

Rep: Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866
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.
 
Old 05-23-2022, 09:16 AM   #3
Sanvido
LQ Newbie
 
Registered: Aug 2019
Location: Campinas - SP - Brazil
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thank you 0XBF!

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rakarrack upgrade in Debian Squeeze? dwmolyneux Linux - Software 5 03-23-2012 08:12 AM
No sound Output Hydrogen Rakarrack ColinL Linux - Newbie 3 12-03-2009 03:11 PM
rakarrack not passing configure headly21 Linux - Software 2 09-27-2009 06:54 PM
rakarrack problems =( ninja master Linux - Software 0 11-11-2008 04:30 AM
LXer: Rakarrack: Guitar FX For Linux LXer Syndicated Linux News 0 06-16-2008 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration