summaryrefslogtreecommitdiffstats
path: root/supercollider
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2023-06-18 17:39:43 +0000
committer Eric Hameleers <alien@slackware.com>2023-06-18 17:39:43 +0000
commit3fdd1acd544a07615490b00e7a0c803f336381e9 (patch)
treea2f7a507b9422a1b93fab2707997ed7e470b6d8e /supercollider
parentb49674038b8554f9ec406858691b38680a90a10a (diff)
downloadasb-3fdd1acd544a07615490b00e7a0c803f336381e9.tar.gz
asb-3fdd1acd544a07615490b00e7a0c803f336381e9.tar.xz
supercollider: update to 3.13.0
Diffstat (limited to 'supercollider')
-rwxr-xr-xsupercollider/build/supercollider.SlackBuild22
1 files changed, 12 insertions, 10 deletions
diff --git a/supercollider/build/supercollider.SlackBuild b/supercollider/build/supercollider.SlackBuild
index 5ab0b90c..535b96f2 100755
--- a/supercollider/build/supercollider.SlackBuild
+++ b/supercollider/build/supercollider.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
# $Id$
-# Copyright 2019, 2020, 2021 Eric Hameleers, Eindhoven, NL
+# Copyright 2019, 2020, 2021, 2023 Eric Hameleers, Eindhoven, NL
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -47,6 +47,8 @@
# * Update.
# 3.12.0-1: 17/aug/2021 by Eric Hameleers <alien@slackware.com>
# * Update.
+# 3.13.0-1: 18/jun/2023 by Eric Hameleers <alien@slackware.com>
+# * Update.
#
# Run 'sh supercollider.SlackBuild' to build a Slackware package.
# The package (.t?z) and .txt file as well as build logs are created in /tmp .
@@ -56,7 +58,7 @@
PRGNAM=supercollider
SRCNAM=SuperCollider
-VERSION=${VERSION:-3.12.0}
+VERSION=${VERSION:-3.13.0}
BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:-" -j$(nproc) "}
TAG=${TAG:-alien}
@@ -237,15 +239,15 @@ chmod 0750 $PKG/usr/bin/*
# Add this to the doinst.sh:
mkdir -p $PKG/install
touch $PKG/install/doinst.sh
-cat <<EOT >> $PKG/install/doinst.sh
-# Set realtime priority capabilty on the main binaries:
-setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/sclang
-setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/scsynth
-setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/scide
-setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/supernova
-
-EOT
cat <<EOINS >> $PKG/install/doinst.sh
+# Give all binaries in the package realtime capabilities:
+if [ -x /sbin/setcap ]; then
+ SCBINS=( $(cd $PKG/usr/bin ; find . -type f -printf '"%P"\n') )
+ for EXE in "\${SCBINS[@]}" ; do
+ /sbin/setcap cap_ipc_lock,cap_sys_nice=ep "usr/bin/\$EXE"
+ done
+fi
+
# Update the desktop database:
if [ -x usr/bin/update-desktop-database ]; then
chroot . /usr/bin/update-desktop-database usr/share/applications > /dev/null 2>&1