summaryrefslogtreecommitdiff
path: root/community/cppcheck/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/cppcheck/PKGBUILD')
-rw-r--r--community/cppcheck/PKGBUILD17
1 files changed, 10 insertions, 7 deletions
diff --git a/community/cppcheck/PKGBUILD b/community/cppcheck/PKGBUILD
index 28fb38e4b..4f834922d 100644
--- a/community/cppcheck/PKGBUILD
+++ b/community/cppcheck/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 98518 2013-10-12 16:47:42Z jelle $
+# $Id: PKGBUILD 103687 2014-01-09 16:14:18Z jelle $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
pkgname=cppcheck
-pkgver=1.62.1
-pkgrel=1
+pkgver=1.63.1
+pkgrel=2
pkgdesc="A tool for static C/C++ code analysis"
arch=('i686' 'x86_64' 'mips64el')
url="http://cppcheck.wiki.sourceforge.net/"
@@ -11,18 +11,17 @@ license=('GPL')
depends=('qt5-base')
makedepends=('docbook-xsl')
source=(https://github.com/danmar/cppcheck/archive/${pkgver}.tar.gz)
-sha1sums=('2494a603bd505cc6ae5bd67286410a66cf7996b2')
-
+sha1sums=('19ad7251603356a82dc75a836dfad9629a3d12a0')
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() {
@@ -32,4 +31,8 @@ package() {
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
}