mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-10 03:01:44 +01:00
32 lines
774 B
Plaintext
32 lines
774 B
Plaintext
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
|
pkgname=templ
|
|
pkgver=0.2.432
|
|
pkgrel=0
|
|
pkgdesc="Language for writing HTML user interface in Go"
|
|
url="https://templ.guide/"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="go"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/a-h/templ/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
export CGO_ENABLED=0
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -v ./cmd/templ
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 $pkgname -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
sha512sums="
|
|
b1a1852af80777d7491d893fadf8ce57322d4ae8585f53fd8587c8cba8beeb1ee3d3c5cecb23d949646b5e8156572cfcaff84e8a754e3274b349b7b96f99f8b9 templ-0.2.432.tar.gz
|
|
"
|