summaryrefslogtreecommitdiffstats
path: root/development/yarn
diff options
context:
space:
mode:
Diffstat (limited to 'development/yarn')
-rw-r--r--development/yarn/README6
-rw-r--r--development/yarn/slack-desc2
-rw-r--r--development/yarn/yarn.SlackBuild17
-rw-r--r--development/yarn/yarn.info8
4 files changed, 21 insertions, 12 deletions
diff --git a/development/yarn/README b/development/yarn/README
index 0fd6098603..4c9a4165c1 100644
--- a/development/yarn/README
+++ b/development/yarn/README
@@ -1,5 +1,7 @@
yarn is a fast, reliable, and secure dependency management.
It allows you to use and share code with other developers from around
-the world. Yarn does this quickly, securely, and reliably so you don't ever
-have to worry.
+the world. Yarn does this quickly, securely, and reliably so you don't
+ever have to worry.
+
+Note: This is the Classic YARN package
diff --git a/development/yarn/slack-desc b/development/yarn/slack-desc
index 8124a3e8c7..586ceb013d 100644
--- a/development/yarn/slack-desc
+++ b/development/yarn/slack-desc
@@ -16,4 +16,4 @@ yarn:
yarn: Yarn does this quickly, securely, and reliably so you don't ever
yarn: have to worry.
yarn:
-yarn: Project URL: https://yarnpkg.com/
+yarn: Project URL: https://classic.yarnpkg.com/
diff --git a/development/yarn/yarn.SlackBuild b/development/yarn/yarn.SlackBuild
index e1c01d3515..79fe602865 100644
--- a/development/yarn/yarn.SlackBuild
+++ b/development/yarn/yarn.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for yarn
-# Copyright 2018 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2018-2024 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=yarn
-VERSION=${VERSION:-1.19.1}
+VERSION=${VERSION:-1.22.19}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+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}
@@ -89,4 +96,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/development/yarn/yarn.info b/development/yarn/yarn.info
index e02eb04530..dee6e5879d 100644
--- a/development/yarn/yarn.info
+++ b/development/yarn/yarn.info
@@ -1,8 +1,8 @@
PRGNAM="yarn"
-VERSION="1.19.1"
-HOMEPAGE="https://yarnpkg.com/"
-DOWNLOAD="https://github.com/yarnpkg/yarn/releases/download/v1.19.1/yarn-v1.19.1.tar.gz"
-MD5SUM="4d406e34b2461c4c4f2c3d1f93692bf8"
+VERSION="1.22.19"
+HOMEPAGE="https://classic.yarnpkg.com/"
+DOWNLOAD="https://github.com/yarnpkg/yarn/releases/download/v1.22.19/yarn-v1.22.19.tar.gz"
+MD5SUM="c04ea97bf9f72386c1a3da6b1c8510e3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="nodejs"