aboutsummaryrefslogtreecommitdiff
path: root/development/cppcheck/cppcheck.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-24 01:36:35 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-25 07:25:02 +0700
commite317cde1f43a8dc97ddf2fb6971dedf51388c75e (patch)
treecb85f89e0eac2ca96efd7565b814400de5d0a2b6 /development/cppcheck/cppcheck.SlackBuild
parent36c8a8d011eab3ab494b5a6720fab9d595197e83 (diff)
development/cppcheck: Updated for version 1.72.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/cppcheck/cppcheck.SlackBuild')
-rw-r--r--development/cppcheck/cppcheck.SlackBuild20
1 files changed, 10 insertions, 10 deletions
diff --git a/development/cppcheck/cppcheck.SlackBuild b/development/cppcheck/cppcheck.SlackBuild
index c4403f8eb954..2b8186331241 100644
--- a/development/cppcheck/cppcheck.SlackBuild
+++ b/development/cppcheck/cppcheck.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=cppcheck
-VERSION=${VERSION:-1.51}
+VERSION=${VERSION:-1.72}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -62,7 +62,12 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-chown root:root . -R
+chown -R root:root .
+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 {} \;
make \
CFLAGS="$SLKCFLAGS -Wall -Wextra -pedantic -Wno-long-long -DNDEBUG" \
@@ -82,20 +87,15 @@ if [ x"$MAKEMAN" == "xyes" ]; then
gzip -9c man/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
fi
-( cd $PKG
- find . -exec file {} + | sed -n '/ELF.*executable\|shared object/s/:.*$//p' | \
- xargs strip --strip-unneeded 2> /dev/null || true
- find . -exec file {} + | sed -n '/current ar archive/s/:.*$//p' | \
- xargs strip --strip-debug 2> /dev/null || true
-)
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING Changelog $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-find . -perm /111 -exec chmod 755 {} + -o -perm /444 ! -perm /111 -exec chmod 644 {} +
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}