[arch-commits] Commit in cppcheck/repos/community-x86_64 (PKGBUILD PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Mon Oct 29 20:58:46 UTC 2018
Date: Monday, October 29, 2018 @ 20:58:45
Author: jelle
Revision: 399479
archrelease: copy trunk to community-x86_64
Added:
cppcheck/repos/community-x86_64/PKGBUILD
(from rev 399478, cppcheck/trunk/PKGBUILD)
Deleted:
cppcheck/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 105 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 52 insertions(+), 53 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-10-29 20:58:30 UTC (rev 399478)
+++ PKGBUILD 2018-10-29 20:58:45 UTC (rev 399479)
@@ -1,53 +0,0 @@
-# $Id$
-# Maintainer: Jelle van der Waa <jelle at archlinux.org>
-# Maintainer: Stéphane Gaudreault <stephane at archlinux.org>
-
-pkgname=cppcheck
-pkgver=1.84
-pkgrel=1
-pkgdesc="A tool for static C/C++ code analysis"
-arch=('x86_64')
-url="http://cppcheck.sourceforge.net/"
-license=('GPL')
-depends=('qt5-base' 'python-pygments')
-makedepends=('docbook-xsl' 'qt5-tools' 'python')
-source=($pkgname-$pkgver.tar.gz::https://github.com/danmar/cppcheck/archive/${pkgver}.tar.gz)
-sha1sums=('711a2d6b19612507df6ac44ed99d8e30f7464af9')
-
-build() {
- cd "${pkgname}-${pkgver}"
- export CXXFLAGS+=" -DNDEBUG"
- # 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.79.2/manpages/docbook.xsl CFGDIR=/usr/share/cppcheck/cfg man
-
- cd gui
- lrelease gui.pro
- qmake HAVE_RULES=yes
- make SRCDIR=build CFGDIR=/usr/share/cppcheck/cfg HAVE_RULES=yes
-}
-
-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
-
- # GUI
- install -m755 gui/cppcheck-gui "${pkgdir}"/usr/bin
- install -d "${pkgdir}/usr/share/applications/"
- install -m644 gui/cppcheck-gui.desktop "${pkgdir}/usr/share/applications/"
-
- install -d "${pkgdir}"/usr/share/cppcheck/cfg
- install -D ./cfg/* -t "${pkgdir}"/usr/share/cppcheck/cfg
-
- install -d "${pkgdir}"/usr/share/cppcheck/cfg/lang
- install -D gui/*.qm -t "${pkgdir}"/usr/share/cppcheck/cfg/lang/
-}
Copied: cppcheck/repos/community-x86_64/PKGBUILD (from rev 399478, cppcheck/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-10-29 20:58:45 UTC (rev 399479)
@@ -0,0 +1,52 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Maintainer: Stéphane Gaudreault <stephane at archlinux.org>
+
+pkgname=cppcheck
+pkgver=1.85
+pkgrel=1
+pkgdesc="A tool for static C/C++ code analysis"
+arch=('x86_64')
+url="http://cppcheck.sourceforge.net/"
+license=('GPL')
+depends=('qt5-base' 'python-pygments')
+makedepends=('docbook-xsl' 'qt5-tools' 'python')
+source=($pkgname-$pkgver.tar.gz::https://github.com/danmar/cppcheck/archive/${pkgver}.tar.gz)
+sha1sums=('b3b4e8d2106dc6a3abd2eca4eb834df98d5af96c')
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ export CXXFLAGS+=" -DNDEBUG"
+ # 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.79.2/manpages/docbook.xsl CFGDIR=/usr/share/cppcheck/cfg man
+
+ cd gui
+ lrelease gui.pro
+ qmake HAVE_RULES=yes
+ make SRCDIR=build CFGDIR=/usr/share/cppcheck/cfg HAVE_RULES=yes
+}
+
+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
+
+ # GUI
+ install -m755 gui/cppcheck-gui "${pkgdir}"/usr/bin
+ install -d "${pkgdir}/usr/share/applications/"
+ install -m644 gui/cppcheck-gui.desktop "${pkgdir}/usr/share/applications/"
+
+ install -d "${pkgdir}"/usr/share/cppcheck/cfg
+ install -D ./cfg/* -t "${pkgdir}"/usr/share/cppcheck/cfg
+
+ install -d "${pkgdir}"/usr/share/cppcheck/cfg/lang
+ install -D gui/*.qm -t "${pkgdir}"/usr/share/cppcheck/cfg/lang/
+}
More information about the arch-commits
mailing list