diff options
Diffstat (limited to 'ruby/ruby-native-package-installer')
3 files changed, 20 insertions, 9 deletions
diff --git a/ruby/ruby-native-package-installer/README b/ruby/ruby-native-package-installer/README index 4f41eb20bf..830095d371 100644 --- a/ruby/ruby-native-package-installer/README +++ b/ruby/ruby-native-package-installer/README @@ -1 +1,2 @@ -native-package-installer helps to install native packages on "gem install". +native-package-installer helps to install native packages on "gem +install". diff --git a/ruby/ruby-native-package-installer/ruby-native-package-installer.SlackBuild b/ruby/ruby-native-package-installer/ruby-native-package-installer.SlackBuild index 382f2f8ea0..dd66cbb6af 100644 --- a/ruby/ruby-native-package-installer/ruby-native-package-installer.SlackBuild +++ b/ruby/ruby-native-package-installer/ruby-native-package-installer.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for ruby-native-package-installer -# Copyright 2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2017-2020 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,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=ruby-native-package-installer -VERSION=${VERSION:-1.0.6} +VERSION=${VERSION:-1.0.9} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=native-package-installer @@ -37,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} @@ -127,4 +137,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 diff --git a/ruby/ruby-native-package-installer/ruby-native-package-installer.info b/ruby/ruby-native-package-installer/ruby-native-package-installer.info index 876de0a2af..633d612848 100644 --- a/ruby/ruby-native-package-installer/ruby-native-package-installer.info +++ b/ruby/ruby-native-package-installer/ruby-native-package-installer.info @@ -1,8 +1,8 @@ PRGNAM="ruby-native-package-installer" -VERSION="1.0.6" +VERSION="1.0.9" HOMEPAGE="https://rubygems.org/gems/native-package-installer/" -DOWNLOAD="https://rubygems.org/downloads/native-package-installer-1.0.6.gem" -MD5SUM="d181b7f2520a9119d72e2c28fac04085" +DOWNLOAD="https://rubygems.org/downloads/native-package-installer-1.0.9.gem" +MD5SUM="e31f13f221831458ed5c05f7b12111de" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |