blob: 046a6d16a492255d3bac601b4d3e83585a17a132 (
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
|
# Maintainer: Anatol Pomozov
pkgname=tang.go-git
pkgver=r21.14a5a12
pkgrel=1
pkgdesc='Tang key manager tools'
arch=(x86_64)
url='https://github.com/anatol/tang.go'
license=(BSD-3)
depends=(glibc)
makedepends=(git go)
source=(git+https://github.com/anatol/tang.go)
sha512sums=('SKIP')
pkgver() {
cd tang.go
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd tang.go
(cd cmd/tangctl && go build -trimpath -buildmode=pie -mod=readonly -modcacherw -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"")
}
package() {
cd tang.go
install -Dp -m755 cmd/tangctl/tangctl "$pkgdir/usr/bin/tangctl"
}
|