2018-11-30 19:31:34 +00:00
|
|
|
# Maintainer: Knut Ahlers <knut at ahlers dot me>
|
|
|
|
|
|
|
|
pkgname=envrun
|
2019-08-04 10:36:43 +00:00
|
|
|
pkgver=0.6.1
|
|
|
|
pkgrel=1
|
2018-11-30 19:32:35 +00:00
|
|
|
pkgdesc="Helper utility to inject environment variables stored in a file into processes"
|
2018-11-30 19:31:34 +00:00
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="https://github.com/Luzifer/$pkgname"
|
|
|
|
license=('Apache')
|
|
|
|
makedepends=('go')
|
|
|
|
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
|
2019-08-04 10:36:43 +00:00
|
|
|
sha512sums=('21c9225ecd829f91f57bba2121f347bd287c37b78d8927b86b9d1b8aef41841d846ba3dee0d254b4994237e085b33e69c9060ca1dbb731c816840ed7a5fbe18d')
|
2018-11-30 19:31:34 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
mkdir -p "${srcdir}/go/src/github.com/Luzifer"
|
|
|
|
ln -sf "${srcdir}/${pkgname}-${pkgver}" "${srcdir}/go/src/github.com/Luzifer/${pkgname}"
|
|
|
|
GOPATH="${srcdir}/go" go install -a -v -ldflags="-X main.version=${pkgver}" "github.com/Luzifer/${pkgname}"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -Dm755 "${srcdir}/go/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
|
|
|
|
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
}
|