summaryrefslogtreecommitdiffstats
path: root/audio/cmus
diff options
context:
space:
mode:
Diffstat (limited to 'audio/cmus')
-rw-r--r--audio/cmus/README11
-rw-r--r--audio/cmus/cmus.SlackBuild22
-rw-r--r--audio/cmus/cmus.info8
3 files changed, 22 insertions, 19 deletions
diff --git a/audio/cmus/README b/audio/cmus/README
index 91db36602e..c804621b44 100644
--- a/audio/cmus/README
+++ b/audio/cmus/README
@@ -1,10 +1,7 @@
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..41e8195a1a 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-2022, 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.10.0}
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..38db697f26 100644
--- a/audio/cmus/cmus.info
+++ b/audio/cmus/cmus.info
@@ -1,10 +1,8 @@
PRGNAM="cmus"
-VERSION="2.8.0"
+VERSION="2.10.0"
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.10.0/cmus-2.10.0.tar.gz"
+MD5SUM="299c09a91024bc81418353743943bfae"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""