diff options
Diffstat (limited to 'system/radeontop/radeontop.SlackBuild')
-rw-r--r-- | system/radeontop/radeontop.SlackBuild | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/system/radeontop/radeontop.SlackBuild b/system/radeontop/radeontop.SlackBuild index 15718a8317..0d1d2b2878 100644 --- a/system/radeontop/radeontop.SlackBuild +++ b/system/radeontop/radeontop.SlackBuild @@ -1,8 +1,10 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for radeontop # Copyright 2018 Hunter Sezen California, USA +# Copyright 2023 K. Eugene Carlson Tsukuba, JP +# # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +24,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=radeontop -VERSION=${VERSION:-1.1} +VERSION=${VERSION:-1.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +40,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# 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 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -72,19 +84,10 @@ find -L . \ # Include the correct version number. sed -i "s/ver=unknown/ver=$VERSION/" ./getver.sh -# Makefile: Add MANDIR. -# https://github.com/clbr/radeontop/commit/dfbff6274ce25814a4357a8a788c404425cecb69 -# https://github.com/clbr/radeontop/pull/79 -patch -p1 < $CWD/man.patch - -# getver.sh: Only use git if its a git repo. -# https://github.com/clbr/radeontop/commit/c7518550fc8b0e62f1c7ea96495eec621bc395ef -# https://github.com/clbr/radeontop/pull/80 -patch -p1 < $CWD/git.patch - CFLAGS="$SLKCFLAGS" \ make amdgpu=1 +# BINDIR no longer needed make install \ PREFIX=/usr \ LIBDIR=lib${LIBDIRSUFFIX} \ @@ -105,4 +108,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |