diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-18 14:41:09 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-19 12:09:29 +0700 |
commit | b85b8d4b71ac8aac1c50c6b44db40fbf977184a1 (patch) | |
tree | bdffeafabf492b0c10bff26531676ea1ed9562b1 | |
parent | 9f1456da15ead149942ae71cab1b965b796d1a46 (diff) | |
download | slackbuilds-b85b8d4b71ac8aac1c50c6b44db40fbf977184a1.tar.gz |
audio/gnomad2: Fix 15.0 build.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | audio/gnomad2/gnomad2.SlackBuild | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/audio/gnomad2/gnomad2.SlackBuild b/audio/gnomad2/gnomad2.SlackBuild index b865d231c5..89c772617b 100644 --- a/audio/gnomad2/gnomad2.SlackBuild +++ b/audio/gnomad2/gnomad2.SlackBuild @@ -3,25 +3,27 @@ # Slackware build script for Gnomad2 # Build script by Ron F. DeMoss, 2011-08-11 +# 20220218 bkw: Modified by SlackBuilds.org, BUILD=2: +# - fix 15.0 build. +# - do not install useless INSTALL in doc dir. +# - set full path to icon in .desktop file (since it's not in /usr/share/icons). + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=gnomad2 VERSION=${VERSION:-2.9.6} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} 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 fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -31,8 +33,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" @@ -56,11 +58,12 @@ 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 \ + -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 {} \+ + -CFLAGS="$SLKCFLAGS" \ +CFLAGS="$SLKCFLAGS -fcommon" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -70,14 +73,13 @@ CFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make +sed -i '/^Icon=/s,=.*,=/usr/share/pixmaps/gnomad2-logo.png,' $PRGNAM.desktop make install-strip DESTDIR=$PKG - -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 +gzip -9 $PKG/usr/man/man*/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \ + AUTHORS COPYING ChangeLog NEWS README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |