blob: 89d29d6826948869ffbe67c848a4694208cd8913 (
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
|
# Maintainer: Michael Gebetsroither <m.gebetsr@gmail.com>
pkgname=cert-viewer
pkgver=0.9.0
pkgrel=2
pkgdesc='Admin toolkit to check x509 certs'
arch=('x86_64' 'aarch64')
url='https://github.com/mgit-at/cert-viewer'
license=('Apache')
makedepends=('go' 'git')
source=("https://github.com/mgit-at/cert-viewer/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('f192aee928388b3bc6c78f49b43f777f51175b7331692457d6673055b85704bb')
build() {
local _commit
_commit="$(bsdcat "$pkgname-$pkgver.tar.gz" | git get-tar-commit-id)"
mkdir -p build/ && cd build/
export CGO_ENABLED=0
(
cd "../$pkgname-$pkgver"
go build -ldflags "-s -w -extldflags -static -X github.com/mgit-at/$pkgname/version.GitCommit=$_commit" \
-tags nolegacy -trimpath -o ../build
)
}
package() {
cd build/
install -Dm755 "./$pkgname" -t "$pkgdir/usr/bin"
}
|