summaryrefslogtreecommitdiffstats
path: root/audio/lmms
diff options
context:
space:
mode:
Diffstat (limited to 'audio/lmms')
-rw-r--r--audio/lmms/README4
-rw-r--r--audio/lmms/lmms.SlackBuild46
-rw-r--r--audio/lmms/lmms.info10
3 files changed, 28 insertions, 32 deletions
diff --git a/audio/lmms/README b/audio/lmms/README
index d0e14b66e9..df30c60fd3 100644
--- a/audio/lmms/README
+++ b/audio/lmms/README
@@ -5,5 +5,5 @@ mixing of sounds, and arranging of samples. You can have fun with
your MIDI-keyboard and much more; all in a user-friendly and modern
interface.
-jack, fluidsynth + fluid-soundfont are optional (but are highly
-recommended) - libgig, carla, stk, portaudio also are optional.
+jack and fluid-soundfont are optional but highly recommended.
+libgig, carla, stk, and portaudio are optional dependencies.
diff --git a/audio/lmms/lmms.SlackBuild b/audio/lmms/lmms.SlackBuild
index c895d0c74a..1dc251cb8c 100644
--- a/audio/lmms/lmms.SlackBuild
+++ b/audio/lmms/lmms.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for lmms
@@ -6,13 +6,13 @@
# 20200415 bkw: modified by SlackBuilds.org
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=lmms
-VERSION=${VERSION:-1.2.1}
+VERSION=${VERSION:-1.2.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-
-# 20200415 bkw: rpmalloc version
-LIBVER=${LIBVER:-20190202_d9b5ee0}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -22,7 +22,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+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}
@@ -46,23 +53,13 @@ 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
-
-# 20200415 bkw: upstream didn't bother to include rpmalloc in their
-# release tarball. The lmms build system is set up to expect rpmalloc
-# source, not a library in e.g. /usr/lib64, so we can't just make a
-# rpmalloc build and make it a depencency of lmms. Furthermore, we can't
-# just use an autogenerated github tarball, as it doesn't contain the
-# CMakeLists.txt required by lmms. The rpmalloc source here came from
-# the rpmalloc submodule from a git clone of lmms.
-cd src/3rdparty
- rm -rf rpmalloc
- tar xvf $CWD/rpmalloc-$LIBVER.tar.?z
- # mv rpmalloc-$LIBVER rpmalloc # only need for rpmalloc releases
-cd -
-
+rm -rf $PRGNAM
+tar xvf $CWD/${PRGNAM}_$VERSION.tar.?z
+cd $PRGNAM
+# Fix symlink
+( cd plugins/carlabase/carla/bin/carla.lv2
+ rm resources
+ ln -s ../../resources . )
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -80,6 +77,7 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \
-DBASHCOMP_PKG_PATH=$PKG/usr/share/bash-completion/completions \
+ -DWANT_QT5=1 \
..
make VERBOSE=1
make install DESTDIR=$PKG
@@ -115,4 +113,4 @@ if ldd $PKG/usr/bin/$PRGNAM | grep -q libjack; then
fi
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/audio/lmms/lmms.info b/audio/lmms/lmms.info
index 634bffd503..1ce8e69627 100644
--- a/audio/lmms/lmms.info
+++ b/audio/lmms/lmms.info
@@ -1,12 +1,10 @@
PRGNAM="lmms"
-VERSION="1.2.1"
+VERSION="1.2.2"
HOMEPAGE="https://lmms.io/"
-DOWNLOAD="https://github.com/LMMS/lmms/archive/v1.2.1/lmms-1.2.1.tar.gz \
- https://slackware.uk/~urchlay/src/rpmalloc-20190202_d9b5ee0.tar.xz"
-MD5SUM="b669265b5c811a3ed4ed9336be2babc0 \
- c7c9f171a93af5b65b6293cb6bfcc8ee"
+DOWNLOAD="https://github.com/LMMS/lmms/releases/download/v1.2.2/lmms_1.2.2.tar.xz"
+MD5SUM="ca4fdbe0d24556254d196eaca68f2254"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="fltk"
+REQUIRES="fltk stk"
MAINTAINER="Zbigniew Baniewski"
EMAIL="Zbigniew [dot] Baniewski [at] gmail [dot] com"