diff options
-rw-r--r-- | development/cppcheck/cppcheck.SlackBuild | 20 | ||||
-rw-r--r-- | development/cppcheck/cppcheck.info | 8 | ||||
-rw-r--r-- | development/cppcheck/slack-desc | 2 |
3 files changed, 15 insertions, 15 deletions
diff --git a/development/cppcheck/cppcheck.SlackBuild b/development/cppcheck/cppcheck.SlackBuild index c4403f8eb9..2b81863312 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 4f7be1ee19..c515112773 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 362acb90eb..b395821023 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 |