summaryrefslogtreecommitdiff
path: root/multimedia/pitivi/pitivi.SlackBuild
diff options
context:
space:
mode:
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 387acf9bc1..0b64064583 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