aboutsummaryrefslogtreecommitdiff
path: root/multimedia/pitivi/pitivi.SlackBuild
diff options
context:
space:
mode:
authorRyan P.C. McQuen <ryan.q@linux.com>2015-12-04 10:46:02 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-12-05 07:58:28 +0700
commita7ea8ce7cfefd9b32c120dfbf9d5e8ab225dc63a (patch)
tree654eb67a1d8123ddb82830c236995cc53caabe2a /multimedia/pitivi/pitivi.SlackBuild
parente8ef480f143ba5438dd86d2035e23d675f0595f4 (diff)
multimedia/pitivi: Updated for version 0.95.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
Diffstat (limited to 'multimedia/pitivi/pitivi.SlackBuild')
-rw-r--r--multimedia/pitivi/pitivi.SlackBuild24
1 files changed, 14 insertions, 10 deletions
diff --git a/multimedia/pitivi/pitivi.SlackBuild b/multimedia/pitivi/pitivi.SlackBuild
index 387acf9bc1e8..0b6406458382 100644
--- a/multimedia/pitivi/pitivi.SlackBuild
+++ b/multimedia/pitivi/pitivi.SlackBuild
@@ -1,5 +1,4 @@
#!/bin/sh
-
# Slackware build script for PiTiVi
# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com
@@ -25,9 +24,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pitivi
-VERSION=${VERSION:-0.94_beta}
-SRCVERSION=${SRCVERSION:-0.94}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.95}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -43,22 +41,28 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
- SRCARCH=x86
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
- SRCARCH=x86
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
- SRCARCH=x86_64
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
+fi
+
+if [ `getconf LONG_BIT` = "32" ]; then
SRCARCH=x86
+elif [ `getconf LONG_BIT` = "64" ]; then
+ SRCARCH=x86_64
+else
+ echo "Your architecture is not supported."
+ exit 1
fi
set -eu
@@ -69,10 +73,10 @@ mkdir -p $TMP/$PRGNAM-$VERSION/
mkdir -p $PKG/opt/$PRGNAM/
mkdir -p $PKG/usr/bin/
cd $TMP/$PRGNAM-$VERSION/
-tar xpvf $CWD/${PRGNAM}-${SRCVERSION}-beta-${SRCARCH}.tar.xz
+tar xpvf $CWD/${PRGNAM}-${VERSION}-beta-${SRCARCH}.tar.xz
-cp -av ${PRGNAM}-${SRCVERSION}-${SRCARCH} $PKG/opt/$PRGNAM/
-ln -sf ../../opt/${PRGNAM}/${PRGNAM}-${SRCVERSION}-${SRCARCH} $PKG/usr/bin/${PRGNAM}
+cp -av ${PRGNAM}-${VERSION}-${SRCARCH} $PKG/opt/$PRGNAM/
+ln -sf ../../opt/${PRGNAM}/${PRGNAM}-${VERSION}-${SRCARCH} $PKG/usr/bin/${PRGNAM}
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild