[arch-commits] Commit in clazy/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Antonio Rojas arojas at archlinux.org
Thu Sep 20 06:18:41 UTC 2018


    Date: Thursday, September 20, 2018 @ 06:18:40
  Author: arojas
Revision: 335066

archrelease: copy trunk to staging-x86_64

Added:
  clazy/repos/staging-x86_64/
  clazy/repos/staging-x86_64/PKGBUILD
    (from rev 335065, clazy/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: clazy/repos/staging-x86_64/PKGBUILD (from rev 335065, clazy/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2018-09-20 06:18:40 UTC (rev 335066)
@@ -0,0 +1,39 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: André Klitzing <aklitzing () gmail () com>
+
+pkgname=clazy
+pkgver=1.3
+pkgrel=3
+pkgdesc="Qt oriented code checker based on clang framework"
+url="https://www.kdab.com/"
+license=(GPL2)
+depends=(clang)
+makedepends=(cmake llvm)
+arch=(x86_64)
+source=(https://download.kde.org/stable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig}
+        clazy-clang7.patch::"https://cgit.kde.org/clazy.git/patch/?id=c1074481")
+sha256sums=('0a9470d653e1c73e06db1421fa922f6ea286408de5abc98e4743b9aee5655188'
+            'SKIP'
+            '39f57c125c69dcbbdd2549090137afed386926f538a54cbaaea57c6a50d03b58')
+validpgpkeys=(949014B23D24354DFD548E5457416A0ADCEF0EFE) # Sergio Martins <sergio.martins at kdab.com>
+
+prepare() {
+  mkdir -p build
+
+  sed -e 's|man/man1|share/man/man1|g' -i $pkgname-$pkgver/CMakeLists.txt
+  cd $pkgname-$pkgver
+  patch -p1 -i ../clazy-clang7.patch # Fix build with clang 7
+}
+
+build() {
+  cd build
+  cmake ../$pkgname-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list