2018-11-30 19:31:34 +00:00
|
|
|
# Maintainer: Knut Ahlers <knut at ahlers dot me>
|
|
|
|
|
|
|
|
pkgname=envrun
|
2023-12-19 13:23:10 +00:00
|
|
|
pkgver=0.7.2
|
2019-08-04 10:36:43 +00:00
|
|
|
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")
|
2023-12-19 13:23:10 +00:00
|
|
|
sha512sums=('0724c09ab68480a5860325e2b7f6a48c224dd45dcee39b172c771bafacbaef609921fb7abd2648242b8e0ae879af187d95983875e88bfc983a64eee769c0cdf5')
|
2018-11-30 19:31:34 +00:00
|
|
|
|
|
|
|
build() {
|
2019-08-04 10:39:28 +00:00
|
|
|
export GO111MODULE=on
|
|
|
|
export GOPATH="${srcdir}/go"
|
|
|
|
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
go build -a -v \
|
|
|
|
-ldflags="-X main.version=${pkgver}" \
|
|
|
|
-mod=readonly \
|
|
|
|
-o "${srcdir}/${pkgname}"
|
|
|
|
|
|
|
|
go clean -modcache
|
2018-11-30 19:31:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-08-04 10:39:28 +00:00
|
|
|
install -Dm755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
|
2018-11-30 19:31:34 +00:00
|
|
|
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
}
|