development/cppcheck: Updated for version 1.72.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-01-24 01:36:35 +07:00
parent 36c8a8d011
commit e317cde1f4
3 changed files with 15 additions and 15 deletions

View file

@ -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}

View file

@ -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=""

View file

@ -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