add APK_VERSION

This commit is contained in:
ElevenNotes
2023-10-04 13:58:58 +02:00
parent d57a605ca4
commit 18617f8fea
2 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
# :: Build # :: Build
FROM 11notes/apk-build:stable as build FROM 11notes/apk-build:stable as build
ENV APK_NAME="bind" ENV APK_NAME="bind"
ENV APK_VERSION="9.18.19"
RUN set -ex; \ RUN set -ex; \
cd ~; \ cd ~; \
@@ -10,6 +11,7 @@
RUN set -ex; \ RUN set -ex; \
cd ~/${APK_NAME}; \ cd ~/${APK_NAME}; \
sed -i "s/\$APK_VERSION/${APK_VERSION}/g" ./APKBUILD; \
abuild checksum; \ abuild checksum; \
abuild -r; \ abuild -r; \
ls -lah /apk/packages; ls -lah /apk/packages;

View File

@@ -5,7 +5,7 @@
# Contributor: ungleich <alpinelinux@ungleich.ch> # Contributor: ungleich <alpinelinux@ungleich.ch>
# Maintainer: Mike Crute <mike@crute.us> # Maintainer: Mike Crute <mike@crute.us>
pkgname=bind pkgname=bind
pkgver=9.18.19 pkgver=$APK_VERSION
_ver=${pkgver%_p*} _ver=${pkgver%_p*}
_p=${pkgver#*_p} _p=${pkgver#*_p}
_major=${pkgver%%.*} _major=${pkgver%%.*}