-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathPKGBUILD
More file actions
37 lines (34 loc) · 930 Bytes
/
PKGBUILD
File metadata and controls
37 lines (34 loc) · 930 Bytes
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
# Maintainer: Clayton Kehoe <clayton.j.kehoe at boeing dot com>
# Contributor : wiz64 <wiz64 dot com>
pkgname=config-file-validator
pkgver=2.2.0
pkgrel=1
pkgdesc="A tool to validate the syntax and schema of configuration files"
arch=('x86_64')
url="https://github.com/Boeing/config-file-validator"
license=('Apache 2.0')
depends=('glibc')
makedepends=('go>=1.26.1' 'git' 'sed')
source=("git+https://github.com/Boeing/config-file-validator.git")
sha256sums=('SKIP')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --tags --abbrev=0 | sed 's/^v//'
}
build() {
cd "$srcdir/$pkgname"
CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64 \
go build \
-ldflags="-w -s -extldflags '-static' \
-X github.com/Boeing/config-file-validator.version=$pkgver" \
-tags netgo \
-o validator \
cmd/validator/validator.go
}
package() {
cd "$srcdir/$pkgname"
install -Dm755 validator "$pkgdir/usr/bin/validator"
}