[Slackbuilds-users] Update wavbreaker (audio) for 15.0

andrew andrew.david.strong at gmail.com
Wed Mar 9 07:26:37 UTC 2022


Hi,

I picked up wavbreaker some time back:

https://lists.slackbuilds.org/pipermail/slackbuilds-users/2021-April/025629.html

I have updated the SlackBuild for 15.0, diff taken against latest SBo
git.

All the best,

Andrew Strong

-- 
You think that's air you're breathing now?
-------------- next part --------------
diff --git a/audio/wavbreaker/README b/audio/wavbreaker/README
index 7ea0c830..0c8cdbac 100644
--- a/audio/wavbreaker/README
+++ b/audio/wavbreaker/README
@@ -1,11 +1,6 @@
-Wavbreaker is a GTK wave file splitter for Linux and Unix-like operating
-systems licensed under the terms of the GNU General Public License.
+wavbreaker is an open source WAV and MP3 file splitter.
 
-This application's purpose in life is to take a wave file and break it
-up into multiple wave files. It makes a clean break at the correct
-position to burn the files to an audio cd without any dead air between
-the tracks. It will only read wave files, so use an appropriate tool
-such as SoX to convert other filetypes (e.g., ogg, mp3, etc.) and then
-break them up. Also included is a command line tool, wavmerge, which
-merges wave files together. This tool will only work on files that are
-alike. For example, 44100 khz  sample rate, 16-bit sample size, etc. 
+wavbreaker is a GTK gui application which takes WAV or MP3 files and
+breaks them up into multiple sections. For MP3 manipulation wavbreaker
+uses libmpg123. It also has command line tools which will merge WAV
+files (wavmerge) and display format information for WAV files (wavinfo).
diff --git a/audio/wavbreaker/slack-desc b/audio/wavbreaker/slack-desc
index bcce2cdf..d65f2591 100644
--- a/audio/wavbreaker/slack-desc
+++ b/audio/wavbreaker/slack-desc
@@ -6,14 +6,14 @@
 # customary to leave one space after the ':' except on otherwise blank lines.
 
           |-----handy-ruler------------------------------------------------------|
-wavbreaker: wavbreaker (wave file splitter)
+wavbreaker: wavbreaker (a WAV and MP3 file splitter)
 wavbreaker:
-wavbreaker: This application's purpose in life is to take a wave file and
-wavbreaker: break it up into multiple wave files. It makes a clean break
-wavbreaker: at the correct position to burn the files to an audio cd
-wavbreaker: without any dead air between the tracks. It will only read
-wavbreaker: wave files, so use an appropriate tool to convert other file
-wavbreaker: types (e.g., ogg, mp3, etc.) and then break them up. There is
-wavbreaker: also a command line tool to merge wave files together,
-wavbreaker: wavmerge.
+wavbreaker: This application takes WAV or MP3 files and breaks them into multiple
+wavbreaker: sections. It also has command line tools which will merge WAV files 
+wavbreaker: (wavmerge) and display format information for WAV files (wavinfo).
+wavbreaker: 
+wavbreaker: 
+wavbreaker: 
+wavbreaker: https://wavbreaker.sourceforge.io/
+wavbreaker: 
 wavbreaker:
diff --git a/audio/wavbreaker/wavbreaker.SlackBuild b/audio/wavbreaker/wavbreaker.SlackBuild
old mode 100644
new mode 100755
index 490ccfb2..d7b80bcf
--- a/audio/wavbreaker/wavbreaker.SlackBuild
+++ b/audio/wavbreaker/wavbreaker.SlackBuild
@@ -3,6 +3,7 @@
 # Slackware build script for wavbreaker
 
 # Copyright 2013, Josiah Boothby, Seattle
+# Copyright 2022 Andrew Strong, Blue Mountains
 # All rights reserved.
 #
 # Redistribution and use of this script, with or without modification, is
@@ -25,14 +26,14 @@
 cd $(dirname $0) ; CWD=$(pwd)
 
 PRGNAM=wavbreaker
-VERSION=${VERSION:-0.11}
+VERSION=${VERSION:-0.13}
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 PKGTYPE=${PKGTYPE:-tgz}
 
 if [ -z "$ARCH" ]; then
   case "$( uname -m )" in
-    i?86) ARCH=i486 ;;
+    i?86) ARCH=i586 ;;
     arm*) ARCH=arm ;;
        *) ARCH=$( uname -m ) ;;
   esac
@@ -50,8 +51,8 @@ TMP=${TMP:-/tmp/SBo}
 PKG=$TMP/package-$PRGNAM
 OUTPUT=${OUTPUT:-/tmp}
 
-if [ "$ARCH" = "i486" ]; then
-  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
   LIBDIRSUFFIX=""
 elif [ "$ARCH" = "i686" ]; then
   SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -79,19 +80,20 @@ find -L . \
  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
  -exec chmod 644 {} \;
 
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
-  --prefix=/usr \
-  --libdir=/usr/lib${LIBDIRSUFFIX} \
-  --sysconfdir=/etc \
-  --localstatedir=/var \
-  --mandir=/usr/man \
-  --docdir=/usr/doc/$PRGNAM-$VERSION \
-  --build=$ARCH-slackware-linux
-
-make
-make install DESTDIR=$PKG
+mkdir build
+cd build
+  CFLAGS="$SLKCFLAGS" \
+  CXXFLAGS="$SLKCFLAGS" \
+  meson .. \
+    --buildtype=release \
+    --libdir=/usr/lib${LIBDIRSUFFIX} \
+    --mandir=/usr/man \
+    --prefix=/usr
+  "${NINJA:=ninja}"
+  DESTDIR=$PKG $NINJA install
+cd ..
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
 
 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
@@ -100,20 +102,8 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
 for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
 
 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
-  AUTHORS \
-  CONTRIBUTORS \
-  COPYING \
-  ChangeLog \
-  NEWS \
-  NOTES \
-  README \
-  README.PulseAudio \
-  TODO \
-  $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS CONTRIBUTORS COPYING README.md $PKG/usr/doc/$PRGNAM-$VERSION
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-cat $CWD/slack-desc > $PKG/usr/doc/$PRGNAM-$VERSION/slack-desc
-cat $CWD/doinst.sh > $PKG/usr/doc/$PRGNAM-$VERSION/doinst.sh
 
 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/audio/wavbreaker/wavbreaker.info b/audio/wavbreaker/wavbreaker.info
index 035b41a9..ae40deff 100644
--- a/audio/wavbreaker/wavbreaker.info
+++ b/audio/wavbreaker/wavbreaker.info
@@ -1,10 +1,10 @@
 PRGNAM="wavbreaker"
-VERSION="0.11"
+VERSION="0.13"
 HOMEPAGE="http://wavbreaker.sourceforge.net"
-DOWNLOAD="http://downloads.sourceforge.net/wavbreaker/wavbreaker-0.11.tar.gz"
-MD5SUM="97f981baa6ca0d4d52b88314defeea4c"
+DOWNLOAD="https://github.com/thp/wavbreaker/archive/0.13/wavbreaker-0.13.tar.gz"
+MD5SUM="cc32a1afd0b52692a81ce7895b5ee767"
 DOWNLOAD_x86_64=""
 MD5SUM_x86_64=""
 REQUIRES=""
-MAINTAINER="Josiah Boothby"
-EMAIL="josiahb at gmail.com"
+MAINTAINER="Andrew Strong"
+EMAIL="andrew.david.strong at gmail.com"


More information about the SlackBuilds-users mailing list