diff --git a/main/gettext/APKBUILD b/main/gettext/APKBUILD
index 9e9be02..dbf0d21 100644
--- a/main/gettext/APKBUILD
+++ b/main/gettext/APKBUILD
@@ -3,7 +3,7 @@
 # Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
 pkgname=gettext
 pkgver=0.21.1
-pkgrel=7
+pkgrel=8
 pkgdesc="GNU locale utilities"
 url="https://www.gnu.org/software/gettext/gettext.html"
 arch="all"
@@ -31,7 +31,6 @@ source="https://ftp.gnu.org/gnu/gettext/gettext-$pkgver.tar.xz
 	musl-realpath.patch
 	"
 
-provider_priority=100 # highest (other provider of cmd:envsubst is testing/envsubst)
 
 # secfixes:
 #   0.20.1-r0:
@@ -78,6 +77,8 @@ asprintf() {
 
 envsubst() {
 	pkgdesc="GNU gettext envsubst binary"
+	provides="envsubst"
+	provider_priority=100 # highest (other provider of cmd:envsubst is testing/envsubst)
 
 	amove usr/bin/envsubst
 }
