Skip to content

Commit

Permalink
node-bower: upgraded to 1.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
conraid committed Nov 26, 2015
1 parent b7c2388 commit f0094d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
18 changes: 7 additions & 11 deletions node-bower/node-bower.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ CWD=$(pwd)

SRCNAM=bower
PRGNAM=node-bower
VERSION=${VERSION:-1.6.4}
VERSION=${VERSION:-1.6.6}
BUILD=${BUILD:-1}
TAG=${TAG:-cf}
TMP=${TMP:-/tmp/pkg}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DOCDIR="$PKG/usr/doc/$PRGNAM-$VERSION"

DOCFILES="CHANGELOG* CONTRIBUTING* HOOKS* LICENSE README*"

Expand All @@ -56,7 +55,7 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
SLKCFLAGS="-O2 -fPIC -pipe -fomit-frame-pointer"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
Expand All @@ -71,11 +70,8 @@ tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION

chown -R root:root .
find . \
\( -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 {} \;
find . -executable -exec chmod 755 {} \+
find . ! -executable -exec chmod 644 {} \+

DESTDIR=$PKG npm install --user root -g

Expand All @@ -85,9 +81,9 @@ rmdir $PKG/usr/etc
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs -r strip --strip-unneeded 2> /dev/null || true
find $PKG | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs -r strip -g 2> /dev/null || true

mkdir -p $DOCDIR
cp -a $DOCFILES $DOCDIR || true
cat $CWD/$PRGNAM.SlackBuild > $DOCDIR/$PRGNAM.SlackBuild
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION || true
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
Expand Down
10 changes: 5 additions & 5 deletions node-bower/node-bower.info
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
PRGNAM="node-bower"
VERSION="1.6.4"
VERSION="1.6.6"
HOMEPAGE="http://bower.io/"
DOWNLOAD="https://github.com/bower/bower/archive/v1.6.4.tar.gz"
FILENAME="bower-1.6.4.tar.gz"
DOWNLOAD="https://github.com/bower/bower/archive/v1.6.6.tar.gz"
FILENAME="bower-1.6.6.tar.gz"
REQUIRES="node npm"
MD5SUM="9ca061ae4a840351bf146cffa621bc64"
SHASUM="cb0e93c4018134b9a3b061e33e4b89dd3f7cdd86"
MD5SUM="82f39b64894c4f438daefa88fda6e4ac"
SHASUM="f7cbfec0a85e912a6a825698893a156b663f768b"
MAINTAINER="Corrado Franco"
EMAIL="conraid (at) linux (dot) it"

0 comments on commit f0094d1

Please sign in to comment.