]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Fix arch build script version sed expression
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 3 Apr 2025 20:44:32 +0000 (22:44 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 17 May 2025 11:43:20 +0000 (12:43 +0100)
Yours truly got rid of the _tag variable in the Arch Linux PKGBUILD
a while ago, so actually adapt the build script to that by changing
the pkgver= variable instead.

(cherry picked from commit a0ca911d633690a0c2097a4319daf1d3a803fb70)
(cherry picked from commit 9c6be09b236bd33b03ecd9e8b5fbea2e74c8bf08)

mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot

index 1e3a74f9533818d23a2f1273d52232075c8faf38..58857aee1ae9efc004283859512d49656cbaa415 100755 (executable)
@@ -65,7 +65,7 @@ EOF
 TS="${SOURCE_DATE_EPOCH:-$(date +%s)}"
 
 sed --in-place "pkg/$PKG_SUBDIR/PKGBUILD" \
-    --expression "s/^_tag=.*/_tag=$(cat meson.version)/" \
+    --expression "s/^pkgver=.*/pkgver=$(cat meson.version)/" \
     --expression "s/^pkgrel=.*/pkgrel=$(date "+%Y%m%d%H%M%S" --date "@$TS")/"
 
 # We get around makepkg's root check by setting EUID to something else.