From 3fdd1acd544a07615490b00e7a0c803f336381e9 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 18 Jun 2023 17:39:43 +0000 Subject: supercollider: update to 3.13.0 --- supercollider/build/supercollider.SlackBuild | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'supercollider') 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 # * Update. +# 3.13.0-1: 18/jun/2023 by Eric Hameleers +# * 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 <> $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 <> $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 -- cgit v1.2.3