diff options
author | Andrew Strong <andrew.david.strong@gmail.com> | 2022-03-09 07:52:44 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-03-09 17:20:46 +0700 |
commit | 6966da4b1fc3859cee42231f988d6e7ea640808f (patch) | |
tree | 28e3be131a96864695ea8e2654b899dd52697bb3 /audio/wavbreaker/wavbreaker.SlackBuild | |
parent | d235eb3212bb3586580680686d8a14a0f388479f (diff) |
audio/wavbreaker: Updated for version 0.13.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/wavbreaker/wavbreaker.SlackBuild')
-rw-r--r-- | audio/wavbreaker/wavbreaker.SlackBuild | 50 |
1 files changed, 20 insertions, 30 deletions
diff --git a/audio/wavbreaker/wavbreaker.SlackBuild b/audio/wavbreaker/wavbreaker.SlackBuild index 490ccfb27f517..d7b80bcf2554f 100644 --- 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 |