mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
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:
parent
bad24eb7b0
commit
eed79aedd8
1 changed files with 2 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue