diff options
Diffstat (limited to 'multimedia/pitivi/pitivi.SlackBuild')
-rw-r--r-- | multimedia/pitivi/pitivi.SlackBuild | 58 |
1 files changed, 35 insertions, 23 deletions
diff --git a/multimedia/pitivi/pitivi.SlackBuild b/multimedia/pitivi/pitivi.SlackBuild index ec18c16068..5b5ea347d2 100644 --- a/multimedia/pitivi/pitivi.SlackBuild +++ b/multimedia/pitivi/pitivi.SlackBuild @@ -1,9 +1,9 @@ #!/bin/sh # Slackware build script for PiTiVi -# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org - # Copyright 2010, 2012 Binh Nguyen <binhvng@gmail.com> +# Copyright 2012-2017 Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org +# Copyright 2017 Jeremy Hansen <jebrhansen+SBo -at- gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,12 +25,12 @@ PRGNAM=pitivi VERSION=${VERSION:-0.95} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -41,9 +41,8 @@ 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" @@ -56,27 +55,40 @@ else 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 rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -mkdir -p $TMP/$PRGNAM-$VERSION/ -mkdir -p $PKG/opt/$PRGNAM/ -mkdir -p $PKG/usr/bin/ -cd $TMP/$PRGNAM-$VERSION/ -tar xpvf $CWD/${PRGNAM}-${VERSION}-beta-${SRCARCH}.tar.xz +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -cp -Rav * $PKG/opt/$PRGNAM/ -ln -sf ../../opt/${PRGNAM}/${PRGNAM}-${VERSION}-${SRCARCH} $PKG/usr/bin/${PRGNAM} +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |