summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a67031d23cdc77a5ee7406d27b5f448b9fd9e71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Philipp Cla├čen <philipp.classen@posteo.de>
#
# This package does not contain any patches. Its main purpose
# is to simplify testing against the latest upstream version.
#
# Unless you have a reason to use the snapshot version,
# you should probably just stick with the aur/lcov package.
#
pkgname=lcov-git
pkgver=r346.b9d6727
pkgrel=1
pkgdesc="Latest snapshot of lcov, a front-end for GCC's coverage testing tool gcov"
arch=('any')
url="http://ltp.sourceforge.net/coverage/lcov.php"
license=('GPL')
depends=(
  'perl'
)
makedepends=('git')
conflicts=('lcov')
provides=('lcov')
source=('git://github.com/linux-test-project/lcov.git')
md5sums=('SKIP')

pkgver() {
  cd lcov
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/lcov"
  make PREFIX="$pkgdir" install

  # fix namcap warnings about non-standard directories
  mkdir -p "$pkgdir/usr"
  test -d "$pkgdir/usr/bin"   || mv "$pkgdir/bin"   "$pkgdir/usr/bin"
  test -d "$pkgdir/usr/share" || mv "$pkgdir/share" "$pkgdir/usr/share"
}