summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD38
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bc9e3549630
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = cppcheck-nox
+ pkgdesc = A tool for static C/C++ code analysis without the GUI
+ pkgver = 1.69
+ pkgrel = 1
+ url = http://cppcheck.wiki.sourceforge.net/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = docbook-xsl
+ makedepends = python
+ depends = python-pygments
+ optdepends = pcre: searching regex with cppcheck
+ source = https://github.com/danmar/cppcheck/archive/1.69.tar.gz
+ md5sums = 9bc7532d9371f506bc4547a05a1fdebf
+
+pkgname = cppcheck-nox
+
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
+}