aboutsummaryrefslogtreecommitdiff
path: root/development
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
parent36c8a8d011eab3ab494b5a6720fab9d595197e83 (diff)
development/cppcheck: Updated for version 1.72.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/cppcheck/cppcheck.SlackBuild20
-rw-r--r--development/cppcheck/cppcheck.info8
-rw-r--r--development/cppcheck/slack-desc2
3 files changed, 15 insertions, 15 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}
diff --git a/development/cppcheck/cppcheck.info b/development/cppcheck/cppcheck.info
index 4f7be1ee199e..c51511277322 100644
--- a/development/cppcheck/cppcheck.info
+++ b/development/cppcheck/cppcheck.info
@@ -1,8 +1,8 @@
PRGNAM="cppcheck"
-VERSION="1.51"
-HOMEPAGE="http://cppcheck.wiki.sourceforge.net"
-DOWNLOAD="http://downloads.sourceforge.net/cppcheck/cppcheck-1.51.tar.gz"
-MD5SUM="672f655cfb51815a3e8af38e55651b5e"
+VERSION="1.72"
+HOMEPAGE="http://cppcheck.sourceforge.net/"
+DOWNLOAD="http://sourceforge.net/projects/cppcheck/files/cppcheck/1.72/cppcheck-1.72.tar.gz"
+MD5SUM="ebab3b0cd7e6daa0106969b10e3ffcf2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/development/cppcheck/slack-desc b/development/cppcheck/slack-desc
index 362acb90ebc2..b39582102365 100644
--- a/development/cppcheck/slack-desc
+++ b/development/cppcheck/slack-desc
@@ -6,7 +6,7 @@
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
-cppcheck: Cppcheck (A tool for static C/C++ code analysis)
+cppcheck: cppcheck (A tool for static C/C++ code analysis)
cppcheck:
cppcheck: Cppcheck is a static analysis tool for C/C++ code. Unlike C/C++
cppcheck: compilers and many other analysis tools, it doesn't detect syntax