# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname=envsubst
pkgver=0.1
pkgrel=1
pkgdesc="perform variable substitutions on input"
url="https://github.com/kaniini/envsubst"
arch="all"
license="ISC"
depends=""
makedepends=""
install=""
subpackages=""
source="https://distfiles.ariadne.space/envsubst/envsubst-$pkgver.tar.xz"
builddir="$srcdir/envsubst-$pkgver"
options="!check" # No test suite.
replaces="gettext" # GNU gettext also provides envsubst.

provider_priority=10  # lowest (other provider of cmd:envsubst is main/gettext)

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" prefix="/usr" install
}

sha512sums="587fed2481c044936d79b8d92719a2acaf4f5e54eef966e5a52fbd6feb3e8341b5130d6e3134b890ad469e99538fcafee4cac01349cab03f23f070eb214c0c5c  envsubst-0.1.tar.xz"
