From 677190c16a7c7d55fcba6e27b044d7f9de1b4264 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Mon, 31 Jul 2023 20:18:34 +0200 Subject: feat: Add quicktemplate qtc bin --- apks/qtc/APKBUILD | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 apks/qtc/APKBUILD (limited to 'apks') diff --git a/apks/qtc/APKBUILD b/apks/qtc/APKBUILD new file mode 100644 index 0000000..cbf570d --- /dev/null +++ b/apks/qtc/APKBUILD @@ -0,0 +1,27 @@ +# Maintainer: Gabriel A. Giovanini +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 +" -- cgit v1.2.3