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

2022-03-08 Thread Dave Woodfall
On 09/03/22 18:26,
andrew  put forth the proposition:
> 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?

Pushed to my branch.  Thanks for the update.

--
Dave
___
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/



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

2022-03-08 Thread andrew
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?
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