aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorС. С. Болоканаръ <bolokanar@bulgars.org>2025-01-24 15:27:52 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2025-01-25 08:28:34 +0700
commitd91b6d62de137bb5112f4f2bd3b59b399644ba3f (patch)
tree471e828f51834971e26c870533dce02e93882692
parent311a5f58c1e62c9dc6289865426869003b8005f7 (diff)
audio/butt: Updated for version 1.44.0 + New maintainer
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--audio/butt/butt.SlackBuild116
-rw-r--r--audio/butt/butt.info12
-rw-r--r--audio/butt/doinst.sh13
-rw-r--r--audio/butt/time-header.patch11
4 files changed, 93 insertions, 59 deletions
diff --git a/audio/butt/butt.SlackBuild b/audio/butt/butt.SlackBuild
index 87a919f08d..44b896a29a 100644
--- a/audio/butt/butt.SlackBuild
+++ b/audio/butt/butt.SlackBuild
@@ -1,23 +1,38 @@
#!/bin/bash
+
# Slackware build script for butt
+
+# Copyright 2025 S.S. Bolokanar, Bulgaria <bolokanar@bulgarsociety.org>
+# С. С. Болоканаръ, България
+# All rights reserved.
+#
# Copyright 2013-2022 klaatu | Lawrence NZ | klaatu@member.fsf.org
#
-# GNU All Permissive License
-# Copying and distribution of this file, with or without modification,
-# are permitted in any medium without royalty provided the copyright
-# notice and this notice are preserved. This file is offered as-is,
-# without any warranty.
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=butt
-VERSION=${VERSION:-0.1.39}
+VERSION=${VERSION:-1.44.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-PREFIX=${PREFIX:-/usr}
-MANDIR=${MANDIR:-$PREFIX/man}
-DOCDIR=${DOCDIR:-$PREFIX/doc}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -27,9 +42,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -41,60 +53,84 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "aarch64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION-1.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find . \
- \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Add required time header
+patch -Np1 -i $CWD/time-header.patch
+# --with-radioco \
CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS -fpermissive" \
+CXXFLAGS="$SLKCFLAGS" \
./configure \
- --prefix $PREFIX \
- --docdir $DOCDIR
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --with-client \
+ --enable-webrtc \
+ --build=$ARCH-slackware-linux
-mkdir -p $PKG/$PREFIX/bin
make
-make install DESTDIR=$PKG
+make install-strip DESTDIR=$PKG
+
+# Manual file
+install -Dm644 butt.1 $PKG/usr/man/man1/butt.1
+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
+
+# Desktop
+install -Dm644 usr/share/applications/butt.desktop $PKG/usr/share/applications/butt.desktop
-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
+# Icons
+for size in 16 22 24 32 48 64 96 128 256 512; do
+ format="${size}x${size}"
+ install -Dm644 "icons/icon_${format}.png" "${PKG}/usr/share/icons/hicolor/${format}/apps/${PRGNAM}.png"
+done
-find $PKG -name perllocal.pod \
- -o -name ".packlist" \
- -o -name "*.bs" \
- | xargs rm -f
+install -Dm644 "icons/icon_scalable.svg" "${PKG}/usr/share/icons/hicolor/scalable/apps/${PRGNAM}.svg"
-# desktop file, added to SlackBuild for convenience
-mkdir -p $PKG/usr/share/applications/
-cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications/
+for file in usr/share/pixmaps/"${PRGNAM}"*; do
+ filename=`basename "${file}"`
+ install -Dm644 "${file}" "${PKG}/usr/share/pixmaps/${filename}"
+done
-# icon file, added to SlackBuild for convenience
-mkdir -p $PKG/usr/share/icons/hicolor/scalable/apps
-cp $CWD/AJ-simple-radio.svg $PKG/usr/share/icons/hicolor/scalable/apps/$PRGNAM.svg
+install -Dm644 "usr/share/metainfo/de.danielnoethen.butt.metainfo.xml" "${PKG}/usr/share/metainfo/de.danielnoethen.butt.metainfo.xml"
-mkdir -p $PKG/$DOCDIR/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- ChangeLog KNOWN_BUGS AUTHORS \
- INSTALL THANKS COPYING README \
- $PKG/$DOCDIR/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/$DOCDIR/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+ ABOUT* AUTHORS ChangeLog COPYING INSTALL README THANKS \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/audio/butt/butt.info b/audio/butt/butt.info
index f9c434df0a..e7cb88f317 100644
--- a/audio/butt/butt.info
+++ b/audio/butt/butt.info
@@ -1,10 +1,10 @@
PRGNAM="butt"
-VERSION="0.1.39"
+VERSION="1.44.0"
HOMEPAGE="http://danielnoethen.de/"
-DOWNLOAD="https://sourceforge.net/projects/butt/files/butt%20OLD/butt-0.1.39/butt-0.1.39.tar.gz"
-MD5SUM="9198368c0c310eb2988d2edc54f4d561"
+DOWNLOAD="https://danielnoethen.de/butt/release/1.44.0/butt-1.44.0-1.tar.gz"
+MD5SUM="4540530b30de7b774d563f8c28dbb36f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="portaudio fltk libfdk-aac"
-MAINTAINER="Klaatu"
-EMAIL="klaatu@member.fsf.org"
+REQUIRES="fltk libdatachannel libfdk-aac portaudio portmidi"
+MAINTAINER="S. S. Bolokanar"
+EMAIL="bolokanar@bulgarsociety.org"
diff --git a/audio/butt/doinst.sh b/audio/butt/doinst.sh
index a7a2dc94fa..65c7e2eeb9 100644
--- a/audio/butt/doinst.sh
+++ b/audio/butt/doinst.sh
@@ -1,16 +1,3 @@
-config() {
- NEW="$1"
- OLD="$(dirname $NEW)/$(basename $NEW .new)"
- # If there's no config file by that name, mv it over:
- if [ ! -r $OLD ]; then
- mv $NEW $OLD
- elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
- # toss the redundant copy
- rm $NEW
- fi
- # Otherwise, we leave the .new copy for the admin to consider...
-}
-
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
diff --git a/audio/butt/time-header.patch b/audio/butt/time-header.patch
new file mode 100644
index 0000000000..45ce58f3e5
--- /dev/null
+++ b/audio/butt/time-header.patch
@@ -0,0 +1,11 @@
+diff -ura butt-1.44.0.orig/src/butt.cpp butt-1.44.0.new/src/butt.cpp
+--- butt-1.44.0.orig/src/butt.cpp 2024-12-03 13:40:43.270943967 -0500
++++ butt-1.44.0.new/src/butt.cpp 2024-12-03 13:41:13.864214094 -0500
+@@ -17,6 +17,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
++#include <time.h>
+
+ #include <signal.h>
+ #include <limits.h>