Date: Thursday, September 22, 2016 @ 03:59:44 Author: svenstaro Revision: 190147
archrelease: copy trunk to community-i686, community-x86_64 Added: kcov/repos/community-i686/ kcov/repos/community-i686/PKGBUILD (from rev 190146, kcov/trunk/PKGBUILD) kcov/repos/community-x86_64/ kcov/repos/community-x86_64/PKGBUILD (from rev 190146, kcov/trunk/PKGBUILD) ---------------------------+ community-i686/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ community-x86_64/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) Copied: kcov/repos/community-i686/PKGBUILD (from rev 190146, kcov/trunk/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2016-09-22 03:59:44 UTC (rev 190147) @@ -0,0 +1,38 @@ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +# Contributor: Jan-Erik Rediger <badboy at archlinux dot us> + +pkgname=kcov +pkgver=31 +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/v${pkgver}.tar.gz") +sha1sums=('76f046d71f120f0304817b8e755783be34892924') + +build() { + 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 + + + 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 $pkgname-$pkgver/build + + make DESTDIR="$pkgdir/" install + make clean +} + +# vim:set ts=2 sw=2 et: Copied: kcov/repos/community-x86_64/PKGBUILD (from rev 190146, kcov/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2016-09-22 03:59:44 UTC (rev 190147) @@ -0,0 +1,38 @@ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +# Contributor: Jan-Erik Rediger <badboy at archlinux dot us> + +pkgname=kcov +pkgver=31 +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/v${pkgver}.tar.gz") +sha1sums=('76f046d71f120f0304817b8e755783be34892924') + +build() { + 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 + + + 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 $pkgname-$pkgver/build + + make DESTDIR="$pkgdir/" install + make clean +} + +# vim:set ts=2 sw=2 et: