libraries/node-xoauth2: Fix build with latest node on sbo.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2022-06-18 15:06:36 +09:00 committed by Willy Sudiarto Raharjo
parent bad24eb7b0
commit eed79aedd8
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -3,6 +3,7 @@
# Slackware build script for node-xoauth2
# Copyright 2017 Andrew Clemons, Wellington, New Zealand
# Copyright 2022 Andrew Clemons, Tokyo, Japan
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=node-xoauth2
VERSION=${VERSION:-1.2.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -38,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# 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
@ -68,10 +66,6 @@ cd $TMP
DESTDIR=$PKG npm install --production -g $CWD/xoauth2-$VERSION.tar.gz
if [ "$LIBDIRSUFFIX" != "" ] ; then
mv $PKG/usr/lib $PKG/usr/lib$LIBDIRSUFFIX
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
(
cd $PKG/usr/doc/$PRGNAM-$VERSION