[arch-commits] Commit in kcov/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Sun May 13 20:58:38 UTC 2018


    Date: Sunday, May 13, 2018 @ 20:58:37
  Author: svenstaro
Revision: 321683

upgpkg: kcov 35-1

Modified:
  kcov/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-13 20:18:49 UTC (rev 321682)
+++ PKGBUILD	2018-05-13 20:58:37 UTC (rev 321683)
@@ -2,7 +2,7 @@
 # Contributor: Jan-Erik Rediger <badboy at archlinux dot us>
 
 pkgname=kcov
-pkgver=34
+pkgver=35
 pkgrel=1
 pkgdesc="Code coverage tester for compiled programs, Python scripts and shell scripts"
 arch=('x86_64')
@@ -9,22 +9,21 @@
 url="http://simonkagstrom.github.com/kcov/index.html"
 license=('GPL2')
 depends=('elfutils' 'curl')
-makedepends=('cmake' 'python2')
+makedepends=('cmake' 'python')
 source=("https://github.com/SimonKagstrom/kcov/archive/v${pkgver}.tar.gz")
-sha512sums=('63ea8e47f00e53b55be4c37697a7f0b78c15f887a40fc0679d7e92f1561bd379a526a82179ee243838fe6f6bd5b89c9eb76716cdb5add7bfb0f312176422a346')
+sha512sums=('a9e04b782eb8444ee4d13be3ceed8a0edd68f0ec3b0e01535730b5d5590e43dbe3fd6485d03df9a57ec6ba9c0440b3208b47dc29e2175816bfe7112004df9fb3')
 
-build() {
+prepare() {
   cd $pkgname-$pkgver
 
-  sed -i 's/env python$/env python2/' src/bin-to-c-source.py
-  sed -i 's/env python$/env python2/' src/engines/python-helper.py
+  rm -rf build
+  mkdir -p build
+}
 
+build() {
+  cd $pkgname-$pkgver/build
 
-  mkdir -p build && cd build
-  # Strip --as-needed, because dl is linked before dw,
-  # but is actually used by dw, so we can't strip it before
-  export LDFLAGS="${LDFLAGS/--as-needed,/}"
-  cmake -DCMAKE_INSTALL_PREFIX=/usr DCMAKE_C_FLAGS="-ldl -D__FOO_BAR_BAZ__" ..
+  cmake .. -DCMAKE_INSTALL_PREFIX=/usr
   make
 }
 



More information about the arch-commits mailing list