diff options
author | Edinaldo P. Silva <edps.mundognu@gmail.com> | 2018-05-19 19:54:41 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-05-20 08:35:09 +0700 |
commit | d1d661637f09e6729921a61aca5f7ee0aff1713a (patch) | |
tree | 51bb659291b84ddd3072b5d00cb17b6694e6f52f /audio/flake/flake.SlackBuild | |
parent | 75279640111f7513e32722d847df101cab8c6f76 (diff) | |
download | slackbuilds-d1d661637f09e6729921a61aca5f7ee0aff1713a.tar.gz |
audio/flake: Updated for version 0.11.5.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'audio/flake/flake.SlackBuild')
-rw-r--r-- | audio/flake/flake.SlackBuild | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/audio/flake/flake.SlackBuild b/audio/flake/flake.SlackBuild index 3ab56c525c..52a4dd823c 100644 --- a/audio/flake/flake.SlackBuild +++ b/audio/flake/flake.SlackBuild @@ -2,7 +2,7 @@ # # Slackware build script for flake. # -# Copyright 2015 Edinaldo P. Silva, Rio de Janeiro, Brazil. +# Copyright 2015-2018 Edinaldo P. Silva, Rio de Janeiro, Brazil. # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=flake -VERSION=${VERSION:-0.11} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.11.5} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -54,13 +54,16 @@ else LIBDIRSUFFIX="" fi +SRCVER=${SRCVER:-f80a2307e442510aeecf3e59785b44135b07e1e8} + set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -rm -rf $TMP/$PRGNAM-$VERSION cd $TMP -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz +mv $PRGNAM-$SRCVER $PRGNAM-$VERSION cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -69,15 +72,15 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -patch -p1 < $CWD/1001-buffer_overrun.patch - -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} +mkdir -p build; cd build -make -j1 +cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIBRARY_OUTPUT_PATH:PATH=$PKG/usr/lib${LIBDIRSUFFIX} \ + -DCMAKE_BUILD_TYPE=Release \ + .. +make make install DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ @@ -85,14 +88,11 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr mkdir -p $PKG/usr/man/man1 cp $CWD/flake.1 $PKG/usr/man/man1 - 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 -DOCS="Changelog COPYING README" - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp ../{Changelog,COPYING,README,TODO,doc/flac_constraints.txt} $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-SlackBuild mkdir -p $PKG/install |