forked from Boeing/config-file-validator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
31 lines (29 loc) · 804 Bytes
/
PKGBUILD
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
# Maintainer: Clayton Kehoe <[email protected]>
# Author : wiz64 <wiz64.com>
pkgname=config-file-validator
pkgver=1.6.0
pkgrel=1
pkgdesc="A tool to validate the syntax of configuration files"
arch=('x86_64')
url="https://github.com/Boeing/config-file-validator"
license=('Apache 2.0')
depends=('glibc')
makedepends=('go')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('SKIP')
build() {
cd "$pkgname-$pkgver"
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 "$pkgname-$pkgver"
install -Dm755 validator "$pkgdir/usr/bin/validator"
}