summaryrefslogtreecommitdiffstats
path: root/audio/acousticbrainz-client
diff options
context:
space:
mode:
Diffstat (limited to 'audio/acousticbrainz-client')
-rw-r--r--audio/acousticbrainz-client/acousticbrainz-client.SlackBuild22
-rw-r--r--audio/acousticbrainz-client/acousticbrainz-client.info2
2 files changed, 17 insertions, 7 deletions
diff --git a/audio/acousticbrainz-client/acousticbrainz-client.SlackBuild b/audio/acousticbrainz-client/acousticbrainz-client.SlackBuild
index 99b16a134b..82c94c3199 100644
--- a/audio/acousticbrainz-client/acousticbrainz-client.SlackBuild
+++ b/audio/acousticbrainz-client/acousticbrainz-client.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for "acousticbrainz-client".
@@ -24,26 +24,36 @@
# (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-client
VERSION=${VERSION:-0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
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}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -91,4 +101,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-client/acousticbrainz-client.info b/audio/acousticbrainz-client/acousticbrainz-client.info
index cceb14eeb7..d5b5a9649d 100644
--- a/audio/acousticbrainz-client/acousticbrainz-client.info
+++ b/audio/acousticbrainz-client/acousticbrainz-client.info
@@ -1,6 +1,6 @@
PRGNAM="acousticbrainz-client"
VERSION="0.1"
-HOMEPAGE="http://acousticbrainz.org/"
+HOMEPAGE="https://acousticbrainz.org/"
DOWNLOAD="https://github.com/MTG/acousticbrainz-client/archive/0.1/acousticbrainz-client-0.1.tar.gz"
MD5SUM="7565d115c04db46e394f05eb12109519"
DOWNLOAD_x86_64=""