summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f81305f23a19e7bd48a05b641b537689960c9d89 (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
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: jprjr <john@jrjrtech.com>

pkgname=('lua-luacov-reporter-gcovr' 'lua51-luacov-reporter-gcovr' 'lua52-luacov-reporter-gcovr' 'lua53-luacov-reporter-gcovr')
_pkgbase='luacov-reporter-gcovr'
pkgdesc='A luacov reporter that creates gcovr json files'
pkgver=0.0.4
pkgrel=1
arch=('any')
url='https://github.com/jprjr/luacov-reporter-gcovr'
license=('MIT')
source=("$_pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
md5sums=('6aa8a3f6dbe6fd504a27613dc80bb1ae')

package_lua-luacov-reporter-gcovr() {
    pkgdesc+=''
    depends=('lua' 'lua-luacov')

    cd "$_pkgbase-$pkgver"
    install -Dm644 src/gcovr.lua "$pkgdir/usr/share/lua/5.4/luacov/reporter/gcovr.lua"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

package_lua51-luacov-reporter-gcovr() {
    pkgdesc+=' for Lua 5.1'
    depends=('lua51' 'lua51-luacov')

    cd "$_pkgbase-$pkgver"
    install -Dm644 src/gcovr.lua "$pkgdir/usr/share/lua/5.1/luacov/reporter/gcovr.lua"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

package_lua52-luacov-reporter-gcovr() {
    pkgdesc+=' for Lua 5.2'
    depends=('lua52' 'lua52-luacov')

    cd "$_pkgbase-$pkgver"
    install -Dm644 src/gcovr.lua "$pkgdir/usr/share/lua/5.2/luacov/reporter/gcovr.lua"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

package_lua53-luacov-reporter-gcovr() {
    pkgdesc+=' for Lua 5.3'
    depends=('lua53' 'lua53-luacov')

    cd "$_pkgbase-$pkgver"
    install -Dm644 src/gcovr.lua "$pkgdir/usr/share/lua/5.3/luacov/reporter/gcovr.lua"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}