aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/rtcqs/README6
-rw-r--r--system/rtcqs/doinst.sh9
-rw-r--r--system/rtcqs/rtcqs.SlackBuild93
-rw-r--r--system/rtcqs/rtcqs.info10
-rw-r--r--system/rtcqs/slack-desc19
5 files changed, 137 insertions, 0 deletions
diff --git a/system/rtcqs/README b/system/rtcqs/README
new file mode 100644
index 0000000000..2c9d3c127e
--- /dev/null
+++ b/system/rtcqs/README
@@ -0,0 +1,6 @@
+rtcqs (tweak your system for realtime audio)
+
+rtcqs is a Python utility to analyze your system and detect possible
+bottlenecks that could have a negative impact on the performance of
+your system when working with Linux audio. It is heavily inspired by
+raboof's excellent realtimeconfigquickscan script.
diff --git a/system/rtcqs/doinst.sh b/system/rtcqs/doinst.sh
new file mode 100644
index 0000000000..65c7e2eeb9
--- /dev/null
+++ b/system/rtcqs/doinst.sh
@@ -0,0 +1,9 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/system/rtcqs/rtcqs.SlackBuild b/system/rtcqs/rtcqs.SlackBuild
new file mode 100644
index 0000000000..677d52867d
--- /dev/null
+++ b/system/rtcqs/rtcqs.SlackBuild
@@ -0,0 +1,93 @@
+#!/bin/bash
+
+# Slackware build script for rtcqs
+
+# Written by B. Watson (urchlay@slackware.uk)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# Note: The GUI for this is actually horrible. You're better
+# off running the textmode rtcqs command. There's a fork called
+# Millisecond that has a nicer GUI, but it requires a libadwaita newer
+# than we can possibly package for Slackware 15.0.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=rtcqs
+VERSION=${VERSION:-0.6.6}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+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}
+
+set -e
+
+# We have 2 possibilities for the filename, depending on whether
+# or not it was downloaded with content-disposition enabled. Unlike
+# github, codeberg has no "magic" URL.
+TARBALL="$CWD/$PRGNAM-v$VERSION.tar.gz"
+[ -e "$TARBALL" ] || TARBALL="$CWD/v$VERSION.tar.gz"
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM
+tar xvf $TARBALL
+cd $PRGNAM
+chown -R root:root .
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod -h 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod -h 644 {} +
+
+# Fix typo. Might as well give the full path to the filename, too.
+sed -i 's,\<\(imits.conf\),/etc/security/l\1,' src/rtcqs/rtcqs.py
+
+# Prevent scary-looking (but harmless) errors in the log, when
+# python3-setuptools-scm is installed. Thanks to fourtysixandtwo
+# for this snippet.
+echo '[tool.setuptools_scm]' >> pyproject.toml
+export SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION
+
+# Python is way too fast moving of a target. This avoids a deprecation
+# warning that claims it will cause breakage in Feb 2016. See:
+# https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
+sed -i \
+ -e 's,^license.*,license-files = ["LICENSE"]\nlicense = "MIT",' \
+ -e '/License ::/d' \
+ pyproject.toml
+
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH=/opt/python$PYVER/site-packages/
+python3 -m build --wheel --no-isolation
+python3 -m installer --destdir "$PKG" dist/*.whl
+
+mkdir -p $PKG/usr/share/{icons/hicolor/scalable/apps,applications}
+install -m0644 $PRGNAM.desktop $PKG/usr/share/applications/
+install -m0644 rtcqs_logo.svg $PKG/usr/share/icons/hicolor/scalable/apps/$PRGNAM.svg
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a LICENSE* README* $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/rtcqs/rtcqs.info b/system/rtcqs/rtcqs.info
new file mode 100644
index 0000000000..3533ef4712
--- /dev/null
+++ b/system/rtcqs/rtcqs.info
@@ -0,0 +1,10 @@
+PRGNAM="rtcqs"
+VERSION="0.6.6"
+HOMEPAGE="https://codeberg.org/rtcqs/rtcqs"
+DOWNLOAD="https://codeberg.org/rtcqs/rtcqs/archive/v0.6.6.tar.gz"
+MD5SUM="f1917b5bb8c41613cb21d95accc124a6"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="python3-setuptools-opt"
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"
diff --git a/system/rtcqs/slack-desc b/system/rtcqs/slack-desc
new file mode 100644
index 0000000000..8e23b24353
--- /dev/null
+++ b/system/rtcqs/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+rtcqs: rtcqs (tweak your system for realtime audio)
+rtcqs:
+rtcqs: rtcqs is a Python utility to analyze your system and detect possible
+rtcqs: bottlenecks that could have a negative impact on the performance of
+rtcqs: your system when working with Linux audio. It is heavily inspired by
+rtcqs: raboof's excellent realtimeconfigquickscan script.
+rtcqs:
+rtcqs:
+rtcqs:
+rtcqs:
+rtcqs: