aboutsummaryrefslogtreecommitdiff
path: root/apks/qtc/APKBUILD
blob: cbf570d1fab60dde5804c1e6697fc0db3ce81541 (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
# Maintainer: Gabriel A. Giovanini <mail@gabriegio.me>
pkgname=qtc
pkgver=1.7.0
pkgrel=1
pkgdesc="Template compiler (converter) for quicktemplate"
url="https://github.com/valyala/quicktemplate/tree/master"
arch="x86_64"
license="MIT"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/valyala/quicktemplate/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/quicktemplate-$pkgver"

build() {
    go build ./qtc/main.go
}

check() {
	go test ./...
}

package() {
	install -Dm755 main "$pkgdir"/usr/bin/qtc
}

sha512sums="
b7f700bafcb63d7c86741579234a32b470aa671993235ea2806545f8a4e3cf23c4464489b73af08ce2e0d8ec2185dadb24e3d73f47403d7cd02b0da9f46497da  qtc-1.7.0.tar.gz
"