summaryrefslogtreecommitdiffstats
path: root/audio/ncmpcpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio/ncmpcpp')
-rw-r--r--audio/ncmpcpp/ncmpcpp.SlackBuild21
-rw-r--r--audio/ncmpcpp/ncmpcpp.info8
2 files changed, 20 insertions, 9 deletions
diff --git a/audio/ncmpcpp/ncmpcpp.SlackBuild b/audio/ncmpcpp/ncmpcpp.SlackBuild
index 3bb21baf73..9df2d26e64 100644
--- a/audio/ncmpcpp/ncmpcpp.SlackBuild
+++ b/audio/ncmpcpp/ncmpcpp.SlackBuild
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for ncmpcpp
# Copyright 2006 Andrew Brouwers <abrouwers@gmail.com>
-# Copyright 2015-2017 Jostein Berntsen <jbernts@broadpark.no>
+# Copyright 2015-2022 Jostein Berntsen <jvbernts@online.no>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,10 +25,13 @@
# Modified by the SlackBuilds.org project
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=ncmpcpp
-VERSION=${VERSION:-0.7.7}
+VERSION=${VERSION:-0.9.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -38,7 +41,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}
@@ -92,8 +102,9 @@ make docdir=/usr/doc/$PRGNAM-$VERSION install-strip DESTDIR=$PKG
gzip -9 $PKG/usr/man/man?/*
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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/ncmpcpp/ncmpcpp.info b/audio/ncmpcpp/ncmpcpp.info
index 4fe60f6bb2..275ef114ad 100644
--- a/audio/ncmpcpp/ncmpcpp.info
+++ b/audio/ncmpcpp/ncmpcpp.info
@@ -1,10 +1,10 @@
PRGNAM="ncmpcpp"
-VERSION="0.7.7"
+VERSION="0.9.2"
HOMEPAGE="http://ncmpcpp.rybczak.net"
-DOWNLOAD="https://github.com/arybczak/ncmpcpp/archive/0.7.7/ncmpcpp-0.7.7.tar.gz"
-MD5SUM="eecf9e690e9054cc75b772239cd4a336"
+DOWNLOAD="https://github.com/arybczak/ncmpcpp/archive/0.9.2/ncmpcpp-0.9.2.tar.gz"
+MD5SUM="4ce5ed2d2dc26e2c703a0c437ee1a14c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libmpdclient"
MAINTAINER="Jostein Berntsen"
-EMAIL="jbernts@broadpark.no"
+EMAIL="jvbernts@online.no"