# Maintainer: Dave Henderson pkgname=gomplate _repo="github.com/hairyhenderson/$pkgname" pkgver=1.4.0 pkgrel=0 commit=46998b7 pkgdesc="A versatile Go template processor." url="https://$_repo" arch="all" license="MIT" depends="ca-certificates" makedepends="go" install="" source="$pkgname-$pkgver.tar.gz::$url/archive/$commit.tar.gz" _godir="${srcdir}/go" builddir="${_godir}/src/${_repo}" prepare() { default_prepare || return 1 mkdir -p $(dirname ${builddir}) mv ${srcdir}/$pkgname-${commit}* ${builddir} || return 1 } build() { cd ${builddir} export GOPATH="${_godir}" export VERSION="${pkgver}" export COMMIT="${commit}" make build } package() { cd ${builddir} install -Dm755 bin/gomplate "$pkgdir"/usr/bin/gomplate || return 1 } md5sums="e04a6bb422fc195ef2b0db184bc0cf50 gomplate-1.4.0.tar.gz" sha256sums="04ea375e02c216858a5fc1bd0c2325f31ba5be42464edc63ebef79dad843997d gomplate-1.4.0.tar.gz" sha512sums="8054611dbf94bbbe926bcf7dcaa53c2fca39e86eb8bcf616cc2e17ebe71231aadb23facff712562dde9b10733b6d4a5dea52d49eca3b533173b6068c8f7026f2 gomplate-1.4.0.tar.gz"