summaryrefslogtreecommitdiffstats
path: root/ruby/ruby-build/ruby-build.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/ruby-build/ruby-build.SlackBuild')
-rw-r--r--ruby/ruby-build/ruby-build.SlackBuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/ruby/ruby-build/ruby-build.SlackBuild b/ruby/ruby-build/ruby-build.SlackBuild
index 2929538318..6127ce60ca 100644
--- a/ruby/ruby-build/ruby-build.SlackBuild
+++ b/ruby/ruby-build/ruby-build.SlackBuild
@@ -2,7 +2,8 @@
# Slackware build script for ruby-build
-# Copyright 2016-2021 Andrew Clemons, Wellington New Zealand
+# Copyright 2016-2022 Andrew Clemons, Wellington New Zealand
+# Copyright 2022-2024 Andrew Clemons, Tokyo Japan
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,15 +26,13 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ruby-build
-VERSION=${VERSION:-20210726}
+VERSION=${VERSION:-20240319}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
-# 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
@@ -58,8 +57,12 @@ 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 {} \;
+sed -i '/^MAN_PATH/s/share\///' install.sh
PREFIX=$PKG/usr bash ./install.sh
+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
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CODE_OF_CONDUCT.md README.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild