summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8eb5d387e0f47202a101c08f11a645a60f6852dd (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
# Maintainer: Ondrej Vlk <ondrej.vlk[at]fuf[dot]name>
# Maintainer: Jan Porhincak <kenaco666[at]gmail[dot]com>

readonly REPO="github.com/seznam/goenvtemplator"

pkgname=goenvtemplator-git
pkgver=v2.1.0.r1.g172ef96
pkgbase=goenvtemplator
_tag="master"
pkgrel=1
pkgdesc='Tool to template configuration files by environment variables and optionally replace itself with the target binary.'
arch=('i686' 'x86_64')
url="https://${REPO}"
license=('LGPL3')
makedepends=('go' 'git')
source=("git+https://github.com/seznam/goenvtemplator.git#tag=${_tag}")
sha256sums=("SKIP")

pkgver() {
    cd "${pkgbase}"
    git describe --long --tags | sed 's/\([^-]-g\)/r\1/;s/-/./g'
}


build() {
    cd "${srcdir}/${pkgbase}"
    make build
}

package() {
    cd "${srcdir}/${pkgbase}"
    make DESTDIR="${pkgdir}" install
}