diff options
Diffstat (limited to 'source/ap/amp/amp.SlackBuild')
-rwxr-xr-x | source/ap/amp/amp.SlackBuild | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/ap/amp/amp.SlackBuild b/source/ap/amp/amp.SlackBuild index cc19533e7..89dc135ce 100755 --- a/source/ap/amp/amp.SlackBuild +++ b/source/ap/amp/amp.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2008, 2009, 2010, 2018 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2008, 2009, 2010, 2018, 2019 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=amp VERSION=0.7.6 -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -50,20 +50,20 @@ PKG=$TMP/package-amp rm -rf $PKG mkdir -p $TMP $PKG -# Explode the package framework: -cd $PKG -explodepkg $CWD/_amp.tar.gz - cd $TMP rm -rf amp-$VERSION -tar xvf $CWD/amp-$VERSION.tar.gz || exit 1 +tar xvf $CWD/amp-$VERSION.tar.?z || exit 1 cd amp-$VERSION || exit 1 zcat $CWD/amp-gcc34.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1 +# Avoid crashes caused by using agressive optimization with newer compilers: +zcat $CWD/amp.do.not.overoptimize.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1 chown -R root:root . ./configure --prefix=/usr $ARCH-slackware-linux || exit 1 make || exit 1 +mkdir -p $PKG/usr/doc $PKG/usr/bin $PKG/usr/man/man1 strip amp cat amp > $PKG/usr/bin/amp +chmod 755 $PKG/usr/bin/amp cat amp.1 | gzip -9c > $PKG/usr/man/man1/amp.1.gz mkdir -p $PKG/usr/doc/amp-$VERSION cp -a \ |