archrelease: copy trunk to community-any
[ArchLinux/community.git] / lcov / trunk / PKGBUILD
blobcc1018573dc0624ad54a5541c192030ccf4e300e
1 # Maintainer:  Caleb Maclennan <caleb@alerque.com>
2 # Contributor: Jordi De Groof <jordi.degroof@gmail.com>
3 # Contributor: Andre Klitzing <aklitzing@gmail.com>
5 pkgname=lcov
6 pkgver=1.16
7 pkgrel=1
8 pkgdesc='front-end for GCC’s coverage testing tool gcov'
9 arch=(any)
10 url="https://github.com/linux-test-project/$pkgname"
11 license=(GPL)
12 depends=(perl)
13 backup=(etc/lcovrc)
14 _archive="$pkgname-$pkgver"
15 source=("$url/releases/download/v$pkgver/$_archive.tar.gz"
16         handle-equals-signs.patch
17         fix-undef-behaviour.patch)
18 sha256sums=('987031ad5528c8a746d4b52b380bc1bffe412de1f2b9c2ba5224995668e3240b'
19             '54728aa4e244d3662c65ba91fb486dc1d5c64d9d55745ee334c4131109dc233c'
20             'ceaf41f7cc9cea5a6fc4b0385ffef10d1ab8812acd2a5b16dcd8d7bca7120488')
22 prepare() {
23     cd "$_archive"
24     patch -p1 -i ../handle-equals-signs.patch
25     patch -p1 -i ../fix-undef-behaviour.patch
28 package () {
29     cd "$_archive"
30     make PREFIX="/usr" CFG_DIR=/etc DESTDIR="$pkgdir" install