integrated SBo's changes

This commit is contained in:
Gwenhael Le Moine 2018-12-21 19:30:33 +01:00
parent 697ee6cdd2
commit 412a80e369
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 12 additions and 14 deletions

View file

@ -5,32 +5,31 @@
# Written by Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
PRGNAM=npm2tgz
VERSION=1.3.5
VERSION=${VERSION:-1.3.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCH=noarch
SRCNAM="$VERSION.tar.gz"
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e # Exit on most errors
set -e
rm -fr $TMP/$PRGNAM-$VERSION $PKG
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
tar xvf $CWD/$SRCNAM
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root.root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p $PKG/usr/{bin,doc/$PRGNAM-$VERSION}
cp npm2tgz $PKG/usr/bin
@ -43,5 +42,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -1,7 +1,7 @@
PRGNAM="npm2tgz"
VERSION="1.3.5"
HOMEPAGE="https://github.com/gwenhael-le-moine/npm2tgz"
DOWNLOAD="https://github.com/gwenhael-le-moine/npm2tgz/archive/1.3.5.tar.gz"
HOMEPAGE="https://github.com/cycojesus/npm2tgz"
DOWNLOAD="https://github.com/cycojesus/npm2tgz/archive/1.3.5/npm2tgz-1.3.5.tar.gz"
MD5SUM="a89b659eae1190f62717c21211e6833e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""