summaryrefslogtreecommitdiffstats
path: root/audio/acousticbrainz-music-extractor
diff options
context:
space:
mode:
Diffstat (limited to 'audio/acousticbrainz-music-extractor')
-rw-r--r--audio/acousticbrainz-music-extractor/acousticbrainz-music-extractor.SlackBuild16
-rw-r--r--audio/acousticbrainz-music-extractor/acousticbrainz-music-extractor.info6
2 files changed, 16 insertions, 6 deletions
diff --git a/audio/acousticbrainz-music-extractor/acousticbrainz-music-extractor.SlackBuild b/audio/acousticbrainz-music-extractor/acousticbrainz-music-extractor.SlackBuild
index 20258fa217..6142c988bd 100644
--- a/audio/acousticbrainz-music-extractor/acousticbrainz-music-extractor.SlackBuild
+++ b/audio/acousticbrainz-music-extractor/acousticbrainz-music-extractor.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for "acousticbrainz-music-extractor".
@@ -24,11 +24,14 @@
# (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=acousticbrainz-music-extractor
SRCNAM=essentia-extractor
VERSION=${VERSION:-v2.1_beta2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -49,7 +52,14 @@ else
exit 1
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}
@@ -83,4 +93,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/acousticbrainz-music-extractor/acousticbrainz-music-extractor.info b/audio/acousticbrainz-music-extractor/acousticbrainz-music-extractor.info
index 7fa6405e97..cd6bf448b8 100644
--- a/audio/acousticbrainz-music-extractor/acousticbrainz-music-extractor.info
+++ b/audio/acousticbrainz-music-extractor/acousticbrainz-music-extractor.info
@@ -1,9 +1,9 @@
PRGNAM="acousticbrainz-music-extractor"
VERSION="v2.1_beta2"
-HOMEPAGE="http://acousticbrainz.org/"
-DOWNLOAD="http://old.acousticbrainz.org/static/download/essentia-extractor-v2.1_beta2-linux-i686.tar.gz"
+HOMEPAGE="https://acousticbrainz.org/"
+DOWNLOAD="ftp://ftp.acousticbrainz.org/pub/acousticbrainz/essentia-extractor-v2.1_beta2-linux-i686.tar.gz"
MD5SUM="c8300d6fae0d9a9a3767ea52cafd166e"
-DOWNLOAD_x86_64="http://old.acousticbrainz.org/static/download/essentia-extractor-v2.1_beta2-linux-x86_64.tar.gz"
+DOWNLOAD_x86_64="ftp://ftp.acousticbrainz.org/pub/acousticbrainz/essentia-extractor-v2.1_beta2-linux-x86_64.tar.gz"
MD5SUM_x86_64="a9d17b2726586ea1b2c667c9adec1445"
REQUIRES=""
MAINTAINER="Marcel Saegebarth"