From 16c44d2de96680ec781416573fe4b4a1b38a68da Mon Sep 17 00:00:00 2001 From: Corrado Franco Date: Tue, 7 Apr 2015 17:04:31 +0200 Subject: [PATCH] npm-bower: rebuilt to remove /usr/etc empty dir --- npm-bower/npm-bower.SlackBuild | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/npm-bower/npm-bower.SlackBuild b/npm-bower/npm-bower.SlackBuild index 7695f88884..3f4d8867e3 100644 --- a/npm-bower/npm-bower.SlackBuild +++ b/npm-bower/npm-bower.SlackBuild @@ -34,7 +34,7 @@ PRGNAME=${PRGNAME:-bower} PKGNAME=npm-$(echo ${PRGNAME} | tr A-Z a-z) VERSION=${VERSION:-1.4.1} PKGVERSION=${VERSION//-/_} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-cf} TMP=${TMP:-/tmp/pkg} PKG=${TMP}/package-${PKGNAME} @@ -86,18 +86,15 @@ chown -R root:root . chmod -R u+w,go+r-w,a-s . # Build and install: -DESTDIR=${PKG} npm install --user root -g ${PRGNAME} +DESTDIR=${PKG} npm install --user root -g + +# Remove empty /usr/etc dir +rmdir ${PKG}/usr/etc # Strip binaries: 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 -# Compress and link manpages, if any: -if [ -d ${PKG}/usr/man ]; then - find ${PKG}/usr/man -type f -exec chmod 644 {} \; -exec gzip -9 {} \; - for i in $( find ${PKG}/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -fi - # Add a documentation directory: mkdir -p ${DOCDIR} cp -a ${DOCFILES} ${DOCDIR} || true