[arch-commits] Commit in cppcheck/trunk (PKGBUILD)

Jelle van der Waa jelle at nymeria.archlinux.org
Thu Jan 9 16:14:07 UTC 2014


    Date: Thursday, January 9, 2014 @ 17:14:07
  Author: jelle
Revision: 103686

upgpkg: cppcheck 1.63.1-2

Modified:
  cppcheck/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-01-09 16:10:15 UTC (rev 103685)
+++ PKGBUILD	2014-01-09 16:14:07 UTC (rev 103686)
@@ -3,7 +3,7 @@
 
 pkgname=cppcheck
 pkgver=1.63.1
-pkgrel=1
+pkgrel=2
 pkgdesc="A tool for static C/C++ code analysis"
 arch=('i686' 'x86_64')
 url="http://cppcheck.wiki.sourceforge.net/"
@@ -15,13 +15,13 @@
 
 build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
-   make
+   make CFGDIR=/usr/share/cppcheck/cfg
    make DB2MAN=/usr/share/xml/docbook/xsl-stylesheets-1.78.1/manpages/docbook.xsl man
 
    cd gui
    export HAVE_RULES=yes 
    qmake
-   make
+   make 
 }
 
 package() {
@@ -31,4 +31,8 @@
    install -D -p -m 644 cppcheck.1 "${pkgdir}"/usr/share/man/man1/cppcheck.1
 
    install -m755 gui/cppcheck-gui "${pkgdir}"/usr/bin
+
+   for _f in cfg/*; do
+     install -D -p -m 644 $_f "${pkgdir}"/usr/share/"${pkgname}"/$_f
+   done
 }




More information about the arch-commits mailing list