diff options
Diffstat (limited to 'system/bottom/bottom.SlackBuild')
-rw-r--r-- | system/bottom/bottom.SlackBuild | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/system/bottom/bottom.SlackBuild b/system/bottom/bottom.SlackBuild index e090e1864895..640e2e7a60a6 100644 --- a/system/bottom/bottom.SlackBuild +++ b/system/bottom/bottom.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for bottom -# Copyright 2022 K. Eugene Carlson Tsukuba, Japan +# Copyright 2022-2023 K. Eugene Carlson Tsukuba, Japan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=bottom BINNAM=btm -VERSION=${VERSION:-0.6.8} +VERSION=${VERSION:-0.8.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -60,15 +60,19 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" CARGOTARGET="--target i586-unknown-linux-gnu" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" CARGOTARGET="--target i686-unknown-linux-gnu" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" CARGOTARGET="--target x86_64-unknown-linux-gnu" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" CARGOTARGET="" + LIBDIRSUFFIX="" fi set -e @@ -136,6 +140,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +export PATH="/opt/rust16/bin:$PATH" +export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX:$PATH" + CARGO_HOME=.cargo \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -147,9 +154,12 @@ find target -name $BINNAM -exec install -m 755 {} $PKG/usr/bin \; 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 -# A man page has been added since the most recent release; copy it in. +# Install the man page. mkdir -p $PKG/usr/man/man1 -gzip -9 -c $CWD/$BINNAM.1 > $PKG/usr/man/man1/$BINNAM.1.gz +( +cd $PKG/usr/man/man1 +tar xf $CWD/manpage.tar.gz +) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -ar docs/content/* $PKG/usr/doc/$PRGNAM-$VERSION @@ -161,18 +171,20 @@ cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild # Completions +tar xf $CWD/completion.tar.gz mkdir -p $PKG/usr/share/bash-completion/completions -find target -name $BINNAM.bash -exec install -m 644 {} $PKG/usr/share/bash-completion/completions \; +find . -name $BINNAM.bash -exec install -m 644 {} $PKG/usr/share/bash-completion/completions \; mkdir -p $PKG/usr/share/zsh/site-functions -find target -name _$BINNAM -exec install -m 644 {} $PKG/usr/share/zsh/site-functions \; +find . -name _$BINNAM -exec install -m 644 {} $PKG/usr/share/zsh/site-functions \; # Only install the fish completions if fish is installed. if [ -x /usr/bin/fish ]; then mkdir -p $PKG/usr/share/fish/vendor_completions.d - find target -name $BINNAM.fish -exec install -m 644 {} $PKG/usr/share/fish/vendor_completions.d \; + find . -name $BINNAM.fish -exec install -m 644 {} $PKG/usr/share/fish/vendor_completions.d \; fi -# Keep files for fish and PowerShell completions in the doc directory. -find target -name $BINNAM.fish -exec install -m 644 {} $PKG/usr/doc/$PRGNAM-$VERSION \; -find target -name _$BINNAM.ps1 -exec install -m 644 {} $PKG/usr/doc/$PRGNAM-$VERSION \; +# Keep files for fish, PowerShell and Elvish completions in the doc directory. +find . -name $BINNAM.fish -exec install -m 644 {} $PKG/usr/doc/$PRGNAM-$VERSION \; +find . -name _$BINNAM.ps1 -exec install -m 644 {} $PKG/usr/doc/$PRGNAM-$VERSION \; +find . -name $BINNAM.elv -exec install -m 644 {} $PKG/usr/doc/$PRGNAM-$VERSION \; mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |