summaryrefslogtreecommitdiffstats
path: root/audio/ncmpc/ncmpc.SlackBuild
diff options
context:
space:
mode:
author Andrew Brouwers <abrouwers@gmail.com>2010-05-13 00:21:51 +0200
committer Erik Hanson <erik@slackbuilds.org>2010-05-13 00:21:51 +0200
commitdeaef7a0513acd6447d285ce93f194abc8978196 (patch)
treebd4ad7142e64569da1175f55b433788b46310199 /audio/ncmpc/ncmpc.SlackBuild
parentaf513968ed17889815da8fc61e0732c90cf617ed (diff)
downloadslackbuilds-deaef7a0513acd6447d285ce93f194abc8978196.tar.gz
slackbuilds-deaef7a0513acd6447d285ce93f194abc8978196.tar.xz
audio/ncmpc: Updated for version 0.16
Diffstat (limited to 'audio/ncmpc/ncmpc.SlackBuild')
-rw-r--r--audio/ncmpc/ncmpc.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/audio/ncmpc/ncmpc.SlackBuild b/audio/ncmpc/ncmpc.SlackBuild
index 0bbc57e15b..74be002a18 100644
--- a/audio/ncmpc/ncmpc.SlackBuild
+++ b/audio/ncmpc/ncmpc.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for ncmpc
-# Copyright 2006 Andrew Brouwers <abrouwers@gmail.com>
+# Copyright 2006-2010 Andrew Brouwers <abrouwers@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
# Modified by the SlackBuilds.org project
PRGNAM=ncmpc
-VERSION=0.14
+VERSION=0.16
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -37,10 +37,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2"
+ LIBDIRSUFFIX="64"
fi
rm -rf $PKG
@@ -56,6 +59,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
|| exit 1
@@ -73,4 +77,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.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}