summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMarco Kundt2015-06-08 23:06:11 +0200
committerMarco Kundt2015-06-08 23:06:11 +0200
commit73cfdc8f0e2b97652af5f37fcf0f69b916eab100 (patch)
tree520db6314a7539fb4fa4bdb696fd3691a3378c09 /PKGBUILD
downloadaur-73cfdc8f0e2b97652af5f37fcf0f69b916eab100.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7d90cb04a7d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Marco Kundt <mrckndt@gmail.com>
+
+pkgname=cppcheck-nox
+_pkgname=cppcheck
+pkgver=1.69
+pkgrel=1
+pkgdesc="A tool for static C/C++ code analysis without the GUI"
+arch=('i686' 'x86_64')
+url="http://cppcheck.wiki.sourceforge.net/"
+license=('GPL')
+depends=('python-pygments')
+makedepends=('docbook-xsl' 'python')
+optdepends=('pcre: searching regex with cppcheck')
+source=(https://github.com/danmar/cppcheck/archive/${pkgver}.tar.gz)
+md5sums=('9bc7532d9371f506bc4547a05a1fdebf')
+
+build() {
+ cd "${_pkgname}-${pkgver}"
+ # Unicode fix
+ LANG='en_US.UTF-8' make SRCDIR=build CFGDIR=/usr/share/cppcheck/cfg HAVE_RULES=yes
+ make DB2MAN=/usr/share/xml/docbook/xsl-stylesheets-1.78.1/manpages/docbook.xsl CFGDIR=/usr/share/cppcheck/cfg man
+}
+
+check() {
+ cd "${_pkgname}-${pkgver}"
+
+# LANG='en_US.UTF-8' make SRCDIR=build CFGDIR=/usr/share/cppcheck/cfg HAVE_RULES=yes test
+}
+
+package() {
+ cd "${_pkgname}-${pkgver}"
+ LANG='en_US.UTF-8' make DESTDIR=${pkgdir} CFGDIR=/usr/share/cppcheck/cfg SRCDIR=build HAVE_RULES=yes install
+
+ install -D -p -m 644 cppcheck.1 "${pkgdir}"/usr/share/man/man1/cppcheck.1
+
+ install -d "${pkgdir}"/usr/share/cppcheck/cfg
+ install -D ./cfg/* -t "${pkgdir}"/usr/share/cppcheck/cfg
+}