summaryrefslogtreecommitdiffstats
path: root/audio/cmus
diff options
context:
space:
mode:
Diffstat (limited to 'audio/cmus')
-rw-r--r--audio/cmus/README10
-rw-r--r--audio/cmus/cmus.SlackBuild22
-rw-r--r--audio/cmus/cmus.info8
3 files changed, 21 insertions, 19 deletions
diff --git a/audio/cmus/README b/audio/cmus/README
index 91db36602e..df0aa44986 100644
--- a/audio/cmus/README
+++ b/audio/cmus/README
@@ -1,10 +1,6 @@
cmus (ncurses based music player)
-cmus is a small and fast text mode music player
-for Linux and many other UNIX like operating systems.
+cmus is a small and fast text mode music player for Linux and many other
+UNIX like operating systems.
-Optional dependencies (autodetected) are ffmpeg, musepack-tools,
-faad2, libmp4v2, and opusfile.
-
-It can be built also over roar-audio and libayemu, but ATM
-these are not available at SlackBuilds.org.
+Optional dependencies (autodetected) are musepack-tools, faad2, libmp4v2.
diff --git a/audio/cmus/cmus.SlackBuild b/audio/cmus/cmus.SlackBuild
index 8b1aed1e5a..91a96f23dd 100644
--- a/audio/cmus/cmus.SlackBuild
+++ b/audio/cmus/cmus.SlackBuild
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for cmus
# Copyright (c) 2008-2010, Antonio Hernández Blas <hba.nihilismus@gmail.com>
-# Copyright 2013-2018, Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
+# Copyright 2013-2021, Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -22,10 +22,13 @@
# (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=cmus
-VERSION=${VERSION:-2.8.0}
+VERSION=${VERSION:-2.9.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -69,8 +79,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-patch -p1 < $CWD/cmus_2.8.0...1ed60b5.patch
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -98,4 +106,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/audio/cmus/cmus.info b/audio/cmus/cmus.info
index 82f60fc6ad..6f0a1a907d 100644
--- a/audio/cmus/cmus.info
+++ b/audio/cmus/cmus.info
@@ -1,10 +1,8 @@
PRGNAM="cmus"
-VERSION="2.8.0"
+VERSION="2.9.1"
HOMEPAGE="https://cmus.github.io"
-DOWNLOAD="https://github.com/cmus/cmus/archive/v2.8.0/cmus-2.8.0.tar.gz \
- http://ponce.cc/slackware/sources/repo/cmus_2.8.0...1ed60b5.patch"
-MD5SUM="3451aa83637d4145932a695cdb4c96ca \
- f66f7fe040c91ad85c9a7ff58bf96d11"
+DOWNLOAD="https://github.com/cmus/cmus/archive/v2.9.1/cmus-2.9.1.tar.gz"
+MD5SUM="914ea4f79827174f825e9e7ce3880c44"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""