From 76882053d09234775addb503f0ee383d6804e84a Mon Sep 17 00:00:00 2001 From: Klaatu Date: Wed, 27 Jul 2016 00:40:48 +0100 Subject: audio/butt: Added (Broadcast Using This Tool). Signed-off-by: David Spencer --- audio/butt/AJ-simple-radio.svg | 429 +++++++++++++++++++++++++++++++++++++++++ audio/butt/README | 17 ++ audio/butt/butt.SlackBuild | 95 +++++++++ audio/butt/butt.desktop | 76 ++++++++ audio/butt/butt.info | 10 + audio/butt/doinst.sh | 22 +++ audio/butt/slack-desc | 19 ++ 7 files changed, 668 insertions(+) create mode 100644 audio/butt/AJ-simple-radio.svg create mode 100644 audio/butt/README create mode 100644 audio/butt/butt.SlackBuild create mode 100644 audio/butt/butt.desktop create mode 100644 audio/butt/butt.info create mode 100644 audio/butt/doinst.sh create mode 100644 audio/butt/slack-desc diff --git a/audio/butt/AJ-simple-radio.svg b/audio/butt/AJ-simple-radio.svg new file mode 100644 index 0000000000..c5a17815bb --- /dev/null +++ b/audio/butt/AJ-simple-radio.svg @@ -0,0 +1,429 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + Openclipart + + + simple radio + 2008-09-02T21:40:21 + + https://openclipart.org/detail/18993/simple-radio-by-aj + + + AJ + + + + + broadcast + editorial pick + electronic + music + radio + + + + + + + + + + + diff --git a/audio/butt/README b/audio/butt/README new file mode 100644 index 0000000000..ab7cff3aa6 --- /dev/null +++ b/audio/butt/README @@ -0,0 +1,17 @@ +butt (broadcast using this tool) is an easy to use, multi OS streaming tool. + +It supports ShoutCast and IceCast. + +After installation, be sure to read /usr/doc/butt-0.1.15/README for setup info. + +http://sourceforge.net/projects/butt + +irc.freenode.org #butt + + +Optional dependency: jack-audio-connection-kit + +Technically, you don't HAVE to compile this with lame for mp3 support, +although that is the default of the configure script and so of this +slackbuild. If you want to not support mp3, then you can exclude lame +and set --without-mp3 as a configure option. diff --git a/audio/butt/butt.SlackBuild b/audio/butt/butt.SlackBuild new file mode 100644 index 0000000000..8cfe05ed28 --- /dev/null +++ b/audio/butt/butt.SlackBuild @@ -0,0 +1,95 @@ +#!/bin/sh + +# Slackware build script for butt +# Copyright 2013 klaatu 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. + +PRGNAM=butt +VERSION=${VERSION:-0.1.15} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PREFIX=${PREFIX:-/usr} +MANDIR=${MANDIR:-$PREFIX/man} +DOCDIR=${DOCDIR:-$PREFIX/doc} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +else + SLKCFLAGS="-O2" +fi + +set -e +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.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 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix $PREFIX \ + --docdir $DOCDIR + +mkdir -p $PKG/$PREFIX/bin +make +make install DESTDIR=$PKG + +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 + +find $PKG -name perllocal.pod \ + -o -name ".packlist" \ + -o -name "*.bs" \ + | xargs rm -f + +# desktop file, added to SlackBuild for convenience +mkdir -p $PKG/usr/share/applications/ +cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications/ + +# 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 + +mkdir -p $PKG/$DOCDIR/$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 + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/audio/butt/butt.desktop b/audio/butt/butt.desktop new file mode 100644 index 0000000000..c4caebd297 --- /dev/null +++ b/audio/butt/butt.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Name=butt +Name[af]=butt +Name[as]=butt +Name[ast]=butt +Name[be]=butt +Name[be@latin]=butt +Name[bg]=butt +Name[bn_IN]=butt +Name[ca]=butt +Name[ca@valencia]=butt +Name[cs]=butt +Name[csb]=butt +Name[da]=butt +Name[de]=butt +Name[el]=butt +Name[en_GB]=butt +Name[eo]=butt +Name[es]=butt +Name[et]=butt +Name[eu]=butt +Name[fi]=butt +Name[fr]=butt +Name[ga]=butt +Name[gl]=butt +Name[he]=butt +Name[hr]=butt +Name[hsb]=butt +Name[hu]=butt +Name[ia]=butt +Name[id]=butt +Name[is]=butt +Name[it]=butt +Name[ja]=butt +Name[ka]=butt +Name[kk]=butt +Name[km]=butt +Name[ko]=butt +Name[ku]=butt +Name[lt]=butt +Name[lv]=butt +Name[ms]=butt +Name[nb]=butt +Name[nds]=butt +Name[nl]=butt +Name[nn]=butt +Name[oc]=butt +Name[pl]=butt +Name[pt]=butt +Name[pt_BR]=butt +Name[ro]=butt +Name[ru]=butt +Name[se]=butt +Name[sk]=butt +Name[sl]=butt +Name[sr@ijekavianlatin]=butt +Name[sr@latin]=butt +Name[sv]=butt +Name[tg]=butt +Name[tr]=butt +Name[ug]=butt +Name[uk]=butt +Name[uz]=butt +Name[uz@cyrillic]=butt +Name[vi]=butt +Name[wa]=butt +Name[x-test]=xxbuttxx +Name[zh_CN]=butt +Name[zh_TW]=butt +Exec=butt +Icon=butt +Type=Application +Categories=Audio;Sound; +GenericName=Broadcast Using This Tool +GenericName[x-test]=xxBroadcast Using This Toolxx +Terminal=false diff --git a/audio/butt/butt.info b/audio/butt/butt.info new file mode 100644 index 0000000000..67bee793ca --- /dev/null +++ b/audio/butt/butt.info @@ -0,0 +1,10 @@ +PRGNAM="butt" +VERSION="0.1.15" +HOMEPAGE="butt.sourceforge.net" +DOWNLOAD="http://ufpr.dl.sourceforge.net/project/butt/butt/butt-0.1.15/butt-0.1.15.tar.gz" +MD5SUM="0440f29a060636010a0a62cb73b35a82" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="portaudio fltk lame opus libfdk-aac" +MAINTAINER="Klaatu" +EMAIL="klaatu@member.fsf.org" diff --git a/audio/butt/doinst.sh b/audio/butt/doinst.sh new file mode 100644 index 0000000000..9d12120d19 --- /dev/null +++ b/audio/butt/doinst.sh @@ -0,0 +1,22 @@ +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 + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/audio/butt/slack-desc b/audio/butt/slack-desc new file mode 100644 index 0000000000..b6cc2e87d2 --- /dev/null +++ b/audio/butt/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +butt: butt (broadcast using this tool) +butt: +butt: Butt is a streaming interface that supports Shoutcast and Icecast. +butt: Use butt to do live streaming. It is not necessary for pre-recorded +butt: streams; for that, you can use only icecast and ices and/or ices-cc. +butt: +butt: http://butt.sourceforge.net +butt: +butt: +butt: +butt: -- cgit v1.2.3