diff options
Diffstat (limited to 'source/ap/htop/htop.SlackBuild')
-rwxr-xr-x | source/ap/htop/htop.SlackBuild | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/ap/htop/htop.SlackBuild b/source/ap/htop/htop.SlackBuild index d3355228..f3428502 100755 --- a/source/ap/htop/htop.SlackBuild +++ b/source/ap/htop/htop.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2011, 2016, 2018 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2011, 2016, 2018, 2020 Patrick J. Volkerding, Sebeka, MN, 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=htop VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-2} +BUILD=${BUILD:-1} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -77,6 +77,14 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ +if [ ! -r configure ]; then + if [ -x ./autogen.sh ]; then + NOCONFIGURE=1 ./autogen.sh + else + autoreconf -vif + fi +fi + CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ |