blob: 94fd0d66843b6fd9eb7370f3af5ea3babb155b69 (
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
|
# Maintainer: Tony Lambiris <tony@libpcap.net>
pkgname=gomplate-git
pkgver=4.0.0.pre.0.r65.g4ae7c12b
pkgrel=1
pkgdesc='A flexible commandline tool for template rendering.'
arch=(i686 x86_64)
url='https://gomplate.hairyhenderson.ca/'
license=(BSD)
conflicts=('gomplate')
provides=('gomplate')
makedepends=(go)
source=("${pkgname}::git+https://github.com/hairyhenderson/gomplate#branch=main")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}
prepare() {
cd "${srcdir}/${pkgname}"
install -m755 -d "${srcdir}/go/src/github.com/hairyhenderson/"
ln -sf "${srcdir}/${pkgname}" "${srcdir}/go/src/github.com/hairyhenderson/gomplate"
}
build() {
cd "${srcdir}/go/src/github.com/hairyhenderson/gomplate"
export GOPATH="${srcdir}/go" GOFLAGS="-modcacherw"
make
}
package() {
cd "${srcdir}/go/src/github.com/hairyhenderson/gomplate"
install -m755 -D "bin/gomplate" "${pkgdir}"/usr/bin/gomplate
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|