blob: d64e4b99ae298f1d0589871de7ab656bb38b934b (
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
45
46
47
48
|
# Maintainer: Tiago Seabra <tiagolseabra at gmail dot com>
pkgname=go-ascii-tool-git
_pkgname=goat
_pkgbin=go-ascii-tool
pkgver=r108.07bb911
pkgrel=1
pkgdesc='GoAT: render ASCII art as SVG diagrams'
arch=(x86_64)
url='https://github.com/blampe/goat'
license=(MIT)
depends=(glibc)
makedepends=(git go)
source=("git+$url")
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $_pkgname
mkdir -p build
go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
-o build \
./cmd/...
}
check() {
cd $_pkgname
go test ./...
}
package() {
cd $_pkgname
install -Dm755 build/$_pkgname "$pkgdir/usr/bin/$_pkgbin"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|