summaryrefslogtreecommitdiff
path: root/community/cppcheck
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/cppcheck
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/cppcheck')
-rw-r--r--community/cppcheck/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/cppcheck/PKGBUILD b/community/cppcheck/PKGBUILD
new file mode 100644
index 000000000..adc0523aa
--- /dev/null
+++ b/community/cppcheck/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 92619 2013-06-10 06:38:48Z bpiotrowski $
+# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
+
+pkgname=cppcheck
+pkgver=1.60.1
+pkgrel=1
+pkgdesc="A tool for static C/C++ code analysis"
+arch=('i686' 'x86_64')
+url="http://cppcheck.wiki.sourceforge.net/"
+license=('GPL')
+depends=('pcre' 'qt4')
+makedepends=('docbook-xsl')
+source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
+sha1sums=('282e74459747d6c940fa65376049cb642cd32e6a')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make
+ make DB2MAN=/usr/share/xml/docbook/xsl-stylesheets-1.78.1/manpages/docbook.xsl man
+
+ cd gui
+ export HAVE_RULES=yes
+ qmake-qt4
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ install -D -p -m 644 cppcheck.1 "${pkgdir}"/usr/share/man/man1/cppcheck.1
+
+ install -m755 gui/cppcheck-gui "${pkgdir}"/usr/bin
+}