blob: 04f8ef2227825d49c0b760e696c074a5bf629c5c (
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
|
# Maintainer: José Gabriel Gruber <development at jgabrielgruber dot dev>
# Contributor: thdxr (original PKGBUILD)
# Contributor: Noel Jacob (bun-bin PKGBUILD)
pkgname=templ-bin
pkgver=0.2.648
pkgrel=1
pkgdesc="A language for writing HTML user interfaces in Go."
arch=('x86_64')
url="https://github.com/a-h/templ"
license=('MIT')
provides=('templ')
conflicts=('templ')
sha256sums_x86_64=("3abad775c8ef0ff42181158e58b6d8746be7d3e2e194974345d97556ad668259")
source_x86_64=("templ-x86-x64-${pkgver}.tar.gz::https://github.com/a-h/templ/releases/download/v${pkgver}/templ_Linux_x86_64.tar.gz")
build() {
install -dm755 "completions"
SHELL=zsh "./templ" completions > "completions/templ.zsh"
SHELL=bash "./templ" completions > "completions/templ.bash"
SHELL=fish "./templ" completions > "completions/templ.fish"
}
package() {
install -Dm755 "./templ" "${pkgdir}/usr/bin/templ"
install -Dm644 completions/templ.zsh "${pkgdir}/usr/share/zsh/site-functions/_templ"
install -Dm644 completions/templ.bash "${pkgdir}/usr/share/bash-completion/completions/templ"
install -Dm644 completions/templ.fish "${pkgdir}/usr/share/fish/vendor_completions.d/templ.fish"
}
|