[Package request] envsubst
envsubst
is a very frequent runtime dependency for Docker containers running Alpine Linux.
It looks like many folks install gettext (56MB!), which causes unnecessary bloat.
Now that lighter alternatives exist, perhaps we can make one easily installed via apk.
For example, a8m/envsubst is only 2.1M and apparently functions well as a drop-in replacement for gettext envsubst.
Here is my attempt at an APKBUILD file:
# Contributor: Wes Roberts <takq@a.zinc.email>
# Maintainer: Your Name <your@email.com>
pkgname=envsubst
pkgver=1.4.2
pkgrel=0
pkgdesc="Environment variable substitution tool"
url="https://github.com/a8m/envsubst"
arch="all"
license="MIT"
depends=""
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/a8m/envsubst/archive/v$pkgver/v$pkgver.tar.gz"
build() {
export CGO_ENABLED=0
cd "$srcdir/$pkgname-$pkgver" || return 1
go build -o "$pkgname"
}
package() {
install -Dm755 "$srcdir/$pkgname-$pkgver/$pkgname" "$pkgdir/usr/bin/$pkgname"
}
sha512sums="c641142a0c69ad3137ce60767fdf2cb735741148141f7aa875d7c31d489b52b4f4a9d25fdc428b20126f275c04734dc16eb29dfefefbd3c66c23db39d68cf423 $pkgname-$pkgver.tar.gz"
Edited by Wesh Rabbits