Skip to content

Commit

Permalink
add PKGBBUILD for Archlinux #63 (#81)
Browse files Browse the repository at this point in the history
* add PKGBBUILD

* change "config-file-validator" to "validator"
  • Loading branch information
wiz64 authored Oct 31, 2023
1 parent 92a2ee1 commit 62ee751
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Maintainer: Clayton Kehoe <[email protected]>
# Author : wiz64 <wiz64.com>
pkgname=config-file-validator
pkgver=1.4.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/v$pkgver.tar.gz")
sha256sums=('SKIP')

build() {
cd "$pkgname-$pkgver"
CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64 \
go build \
-ldflags='-w -s -extldflags "-static"' \
-tags netgo \
-o validator \
cmd/validator/validator.go
}

package() {
cd "$pkgname-$pkgver"
install -Dm755 validator "$pkgdir/usr/bin/validator"
}

0 comments on commit 62ee751

Please sign in to comment.