blob: 44fde6e6cc3002e4cde0f9fe348307f0ea8e5364 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Vitold Sedyshev <vit1251@gmail.com>
pkgname='golden-point'
pkgver='1.2.19'
pkgrel=2
arch=('x86_64')
pkgdesc='Golden Point is FIDO network message editor/reader, mailer, tracker and tosser.'
url='https://github.com/vit1251/golden/releases'
license=('MIT')
makedepends=('go>=2:1.18')
source=("https://github.com/vit1251/golden/archive/refs/tags/$pkgver.tar.gz")
md5sums=('0eb99ab2413bf2078b75e202de995764')
prepare() {
cd "golden-$pkgver"
go get -v -u
go generate
}
build() {
cd "golden-$pkgver"
export GOOS="linux"
export GOARCH="amd64"
export CGO_ENABLED="1"
go build \
-trimpath \
-buildmode=pie \
-o golden-linux-amd64
}
package() {
cd "golden-$pkgver"
install -m 0755 -d "$pkgdir/opt/golden"
# Executable
install -m 0755 golden-linux-amd64 "$pkgdir/opt/golden/golden-linux-amd64"
# Readme, license and changes
install -m 0644 LICENSE "$pkgdir/opt/golden/LICENSE"
install -m 0644 README.md "$pkgdir/opt/golden/README.md"
install -m 0644 ChangeLog "$pkgdir/opt/golden/ChangeLog"
# User guide
install -m 0755 -d "$pkgdir/opt/golden/docs"
install -m 0644 docs/*.md "$pkgdir/opt/golden/docs/"
}
|