aboutsummaryrefslogtreecommitdiff
path: root/audio/cubeb
diff options
context:
space:
mode:
authorSteven Voges <svoges.sbo@gmail.com>2023-04-08 00:21:45 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-04-08 09:16:28 +0700
commit66657844794c32bfc4bb60b2b378e8b16e3666de (patch)
tree726902dfda2f10d3b0593a913a449d6dd9c9f313 /audio/cubeb
parentd745137a41fdc167fd85bd47955a961ef7e3ef4f (diff)
audio/cubeb: Updated for version 20230321_2071354.
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/cubeb')
-rw-r--r--audio/cubeb/README3
-rw-r--r--audio/cubeb/cubeb.SlackBuild17
-rw-r--r--audio/cubeb/cubeb.info4
3 files changed, 18 insertions, 6 deletions
diff --git a/audio/cubeb/README b/audio/cubeb/README
index 2d3030a27ccbd..7848ab1ecff02 100644
--- a/audio/cubeb/README
+++ b/audio/cubeb/README
@@ -6,3 +6,6 @@ To disable pulse support, pass PULSE=false to the build script.
jack is an optional dependency and support can be enabled by passing
JACK=true to the build script.
+
+Tests are enabled by default, to disable testing, pass TESTS=false
+to the build script.
diff --git a/audio/cubeb/cubeb.SlackBuild b/audio/cubeb/cubeb.SlackBuild
index 09e87197230eb..a7c9eb94a9938 100644
--- a/audio/cubeb/cubeb.SlackBuild
+++ b/audio/cubeb/cubeb.SlackBuild
@@ -25,12 +25,14 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=cubeb
-VERSION=${VERSION:-0.2.1572}
+VERSION=${VERSION:-20230321_2071354}
SRCVER=${SRCVER:-2071354a69aca7ed6df3b4222e305746c2113f60}
+GOOGLETEST=${GOOGLETEST:-800f5422ac9d9e0ad59cd860a2ef3a679588acb4}
SANITIZERSCMAKE=${SANITIZERSCMAKE:-aab6948fa863bc1cbe5d0850bc46b9ef02ed4c1a}
ALSA=${ALSA:-true}
JACK=${JACK:-false}
PULSE=${PULSE:-true}
+TESTS=${TESTS:-true}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -73,9 +75,16 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$SRCVER
tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
+cd $PRGNAM-$SRCVER
+
+tar xvf $CWD/googletest-$GOOGLETEST.tar.gz -C \
+ $TMP/$PRGNAM-$SRCVER/googletest --strip-components 1
tar xvf $CWD/sanitizers-cmake-$SANITIZERSCMAKE.tar.gz -C \
$TMP/$PRGNAM-$SRCVER/cmake/sanitizers-cmake --strip-components 1
-cd $PRGNAM-$SRCVER
+
+# Test logging is currently broken, so we'll skip it
+sed -i '/cubeb_add_test(logging)/d' CMakeLists.txt
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -90,7 +99,7 @@ cd build
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=true \
- -DBUILD_TESTS=false \
+ -DBUILD_TESTS=$TESTS \
-DUSE_ALSA=$ALSA \
-DUSE_JACK=$JACK \
-DUSE_PULSE=$PULSE \
@@ -102,8 +111,6 @@ cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS LICENSE README.md docs \
diff --git a/audio/cubeb/cubeb.info b/audio/cubeb/cubeb.info
index 5a24d6e8a1490..f2b6c55b4532d 100644
--- a/audio/cubeb/cubeb.info
+++ b/audio/cubeb/cubeb.info
@@ -1,9 +1,11 @@
PRGNAM="cubeb"
-VERSION="0.2.1572"
+VERSION="20230321_2071354"
HOMEPAGE="https://github.com/mozilla/cubeb"
DOWNLOAD="https://github.com/mozilla/cubeb/archive/2071354a69aca7ed6df3b4222e305746c2113f60/cubeb-2071354a69aca7ed6df3b4222e305746c2113f60.tar.gz \
+ https://github.com/google/googletest/archive/800f5422ac9d9e0ad59cd860a2ef3a679588acb4/googletest-800f5422ac9d9e0ad59cd860a2ef3a679588acb4.tar.gz \
https://github.com/arsenm/sanitizers-cmake/archive/aab6948fa863bc1cbe5d0850bc46b9ef02ed4c1a/sanitizers-cmake-aab6948fa863bc1cbe5d0850bc46b9ef02ed4c1a.tar.gz"
MD5SUM="c0da757accb420af496d04f38e4eac57 \
+ b0b23c6e3137c995ed842b6fbae37e7b \
0492fedbd255d1d831db432c2578a0c1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""