audio/faad2: Updated for version 2.9.1.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2020-01-14 21:36:55 +01:00 committed by Willy Sudiarto Raharjo
parent 22fcc17982
commit 2db3638d87
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 15 additions and 20 deletions

View file

@ -3,6 +3,7 @@
# Slackware build script for faad2
# Copyright 2007 Niklas "Nille" Åkerström
# Copyright (c) 2020, Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,8 +24,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=faad2
VERSION=${VERSION:-2.7}
BUILD=${BUILD:-2}
VERSION=${VERSION:-2.9.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -60,14 +61,17 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
mv $PRGNAM-$(echo $VERSION | tr . _ ) $PRGNAM-$VERSION
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 {} \;
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
./bootstrap
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@ -86,25 +90,16 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
mv $PKG/usr/man/manm $PKG/usr/man/man1
rename .man .1 $PKG/usr/man/man1/*.man
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
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
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO docs/* \
cp -a AUTHORS COPYING ChangeLog NEWS README* TODO docs/Ahead* \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc -type f -exec chmod 0644 {} \;
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
if [ "$1" = "--cleanup" ]; then
rm -rf $PKG $TMP/$PRGNAM-$VERSION
fi

View file

@ -1,8 +1,8 @@
PRGNAM="faad2"
VERSION="2.7"
HOMEPAGE="https://www.audiocoding.com/"
DOWNLOAD="http://downloads.sourceforge.net/faac/faad2-2.7.tar.bz2"
MD5SUM="4c332fa23febc0e4648064685a3d4332"
VERSION="2.9.1"
HOMEPAGE="https://github.com/knik0/faad2"
DOWNLOAD="https://github.com/knik0/faad2/archive/2_9_1/faad2-2.9.1.tar.gz"
MD5SUM="a880fadc4fc4a564d0833f0c1e7c08b5"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""