diff options
Diffstat (limited to 'development/portaudio/portaudio.SlackBuild')
-rw-r--r-- | development/portaudio/portaudio.SlackBuild | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/development/portaudio/portaudio.SlackBuild b/development/portaudio/portaudio.SlackBuild index 6cbe607180..0c2b3109b1 100644 --- a/development/portaudio/portaudio.SlackBuild +++ b/development/portaudio/portaudio.SlackBuild @@ -4,13 +4,14 @@ # # Copyright 2009-2015 Marco Bonetti <sid77@slackware.it> # Copyright 2015 Marcel Saegebarth <marc@mos6581.de> +# Copyright 2022 Bill Kirkpatrick, Bay City, Texas, USA # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # -# * Redistributions of source code must retain the above copyright +# 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS @@ -28,15 +29,14 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=portaudio -SRCNAM=pa -VERSION=${VERSION:-v190700_20210406} +VERSION=${VERSION:-19.7.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -54,8 +54,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" @@ -73,9 +73,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM -tar xvf $CWD/${SRCNAM}_stable_${VERSION}.tgz -cd $PRGNAM +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -98,11 +98,11 @@ CXXFLAGS="$SLKCFLAGS" \ make -j1 make install DESTDIR=$PKG +rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/*.la + 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 -rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/*.la - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a LICENSE.txt README.configure.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |