]> 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>
Thu, 3 Apr 2025 22:15:40 +0000 (23:15 +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.

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

index d60a7e979320a1c62a2f8fa6c3f2c860c67d51d0..3e96080dd8496a231474efaf3fe471c8a23e68f4 100755 (executable)
@@ -59,7 +59,7 @@ EOF
 TS="${SOURCE_DATE_EPOCH:-$(date +%s)}"
 
 sed "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")/" >/tmp/PKGBUILD
 mount --bind /tmp/PKGBUILD "pkg/$PKG_SUBDIR/PKGBUILD"