blob: 888275b32aea8f8c12373316ed0e4f1cbbea2c58 (
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
|
# Maintainer: prochac <tomas.prochazka5d[at]gmail[dot]com>
# Contributor: kpcyrd <kpcyrd[at]archlinux[dot]org>
_gitname=vuln
pkgname=govulncheck-git
pkgver=1.1.3
pkgrel=3
pkgdesc='Database client and tools for the Go vulnerability database'
url='https://go.googlesource.com/vuln/'
arch=('x86_64')
license=('BSD-3-Clause')
makedepends=('go' 'git')
provides=('govulncheck')
conflicts=('govulncheck')
source=(git+http://go.googlesource.com/${_gitname}/)
b2sums=('SKIP')
pkgver() {
cd ${_gitname}
echo ${pkgver}
}
prepare() {
cd "${srcdir}/${_gitname}"
# Checkout the specific tag
git checkout "v${pkgver}"
}
build() {
cd ${_gitname}
go build -o govulncheck ./cmd/govulncheck
}
package() {
cd ${_gitname}
install -Dm 755 govulncheck -t "${pkgdir}/usr/bin"
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et:
|