integrated SBo's changes
This commit is contained in:
parent
697ee6cdd2
commit
412a80e369
2 changed files with 12 additions and 14 deletions
|
@ -5,32 +5,31 @@
|
||||||
# Written by Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
|
# Written by Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
|
||||||
|
|
||||||
PRGNAM=npm2tgz
|
PRGNAM=npm2tgz
|
||||||
VERSION=1.3.5
|
VERSION=${VERSION:-1.3.5}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
ARCH=noarch
|
ARCH=noarch
|
||||||
|
|
||||||
SRCNAM="$VERSION.tar.gz"
|
|
||||||
|
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
TMP=${TMP:-/tmp/SBo}
|
TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
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
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
tar xvf $CWD/$SRCNAM
|
rm -rf $PRGNAM-$VERSION
|
||||||
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root.root .
|
chown -R root.root .
|
||||||
find . \
|
find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
-exec chmod 755 {} \; -o \
|
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
mkdir -p $PKG/usr/{bin,doc/$PRGNAM-$VERSION}
|
mkdir -p $PKG/usr/{bin,doc/$PRGNAM-$VERSION}
|
||||||
cp npm2tgz $PKG/usr/bin
|
cp npm2tgz $PKG/usr/bin
|
||||||
|
@ -43,5 +42,4 @@ mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
cd $PKG
|
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}
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
PRGNAM="npm2tgz"
|
PRGNAM="npm2tgz"
|
||||||
VERSION="1.3.5"
|
VERSION="1.3.5"
|
||||||
HOMEPAGE="https://github.com/gwenhael-le-moine/npm2tgz"
|
HOMEPAGE="https://github.com/cycojesus/npm2tgz"
|
||||||
DOWNLOAD="https://github.com/gwenhael-le-moine/npm2tgz/archive/1.3.5.tar.gz"
|
DOWNLOAD="https://github.com/cycojesus/npm2tgz/archive/1.3.5/npm2tgz-1.3.5.tar.gz"
|
||||||
MD5SUM="a89b659eae1190f62717c21211e6833e"
|
MD5SUM="a89b659eae1190f62717c21211e6833e"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
|
|
Loading…
Add table
Reference in a new issue