[arch-commits] Commit in (kcov kcov/repos kcov/trunk kcov/trunk/PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Thu Sep 22 03:56:58 UTC 2016
Date: Thursday, September 22, 2016 @ 03:56:58
Author: svenstaro
Revision: 190145
Add kcov
Added:
kcov/
kcov/repos/
kcov/trunk/
kcov/trunk/PKGBUILD
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Added: kcov/trunk/PKGBUILD
===================================================================
--- kcov/trunk/PKGBUILD (rev 0)
+++ kcov/trunk/PKGBUILD 2016-09-22 03:56:58 UTC (rev 190145)
@@ -0,0 +1,40 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Jan-Erik Rediger <badboy at archlinux dot us>
+
+pkgname=kcov
+pkgver=v31
+pkgrel=1
+pkgdesc="Code coverage tester for compiled programs, Python scripts and shell scripts"
+arch=('i686' 'x86_64')
+url="http://simonkagstrom.github.com/kcov/index.html"
+license=('GPL2')
+depends=('elfutils' 'curl')
+makedepends=('cmake' 'python2')
+source=('https://github.com/SimonKagstrom/kcov/archive/${pkgver}.tar.gz')
+sha1sums=('SKIP')
+
+_gitname="kcov"
+
+build() {
+ cd "$srcdir/$_gitname"
+
+ 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
+
+
+ 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:STRING="-ldl -D__FOO_BAR_BAZ__" ..
+ make VERBOSE=1
+}
+
+package() {
+ cd "$srcdir/$_gitname/build"
+
+ make DESTDIR="$pkgdir/" install
+ make clean
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list