From d7b415e814540459a5a311f0c7345f5d41ea9306 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Thu, 29 Dec 2016 16:35:59 +0100 Subject: multimedia/rtmpdump: Updated for version 20151223_fa8646d, cleanups. Signed-off-by: Matteo Bernardini --- multimedia/rtmpdump/rtmpdump.SlackBuild | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'multimedia/rtmpdump/rtmpdump.SlackBuild') diff --git a/multimedia/rtmpdump/rtmpdump.SlackBuild b/multimedia/rtmpdump/rtmpdump.SlackBuild index e2c4ae5a55..7728e656d5 100644 --- a/multimedia/rtmpdump/rtmpdump.SlackBuild +++ b/multimedia/rtmpdump/rtmpdump.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for rtmpdump -# Copyright 2013-2015 Matteo Bernardini , Pisa, Italy +# Copyright 2013-2016 Matteo Bernardini , Pisa, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,13 +25,13 @@ # Modified by SlackBuilds.org PRGNAM=rtmpdump -VERSION=${VERSION:-20150115_a107cef} +VERSION=${VERSION:-20151223_fa8646d} BUILD=${BUILD:-1} 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 @@ -42,8 +42,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" @@ -66,10 +66,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* 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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -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 {} \; # patch makefiles for shared library install patch -p1 < $CWD/librtmp-makefile.patch @@ -86,14 +86,13 @@ make \ DESTDIR=$PKG \ install -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +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 find $PKG/usr/man -type f -exec gzip -9 {} \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING ChangeLog README \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install -- cgit v1.2.3-65-gdbad