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.SlackBuild46
1 files changed, 13 insertions, 33 deletions
diff --git a/multimedia/pitivi/pitivi.SlackBuild b/multimedia/pitivi/pitivi.SlackBuild
index 9820f6eb74..92bdb302bd 100644
--- a/multimedia/pitivi/pitivi.SlackBuild
+++ b/multimedia/pitivi/pitivi.SlackBuild
@@ -25,7 +25,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pitivi
-VERSION=${VERSION:-0.15.2}
+VERSION=${VERSION:-0.94_beta}
+SRCVERSION=${SRCVERSION:-0.94}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -45,60 +46,39 @@ 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=""
+ SRCARCH=x86
fi
set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-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 {} \;
+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
-CFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --infodir=/usr/info \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --localedir=/usr/share/locale \
- --build=$ARCH-slackware-linux
-
-make
-make install DESTDIR=$PKG
-
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
+cp -av ${PRGNAM}-${SRCVERSION}-${SRCARCH} $PKG/opt/$PRGNAM/
+ln -sf ../../opt/${PRGNAM}/${PRGNAM}-${SRCVERSION}-${SRCARCH} $PKG/usr/bin/${PRGNAM}
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README RELEASE \
- $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}