1
0
mirror of https://github.com/systemd/systemd synced 2025-10-06 00:13:24 +02:00

mkosi: Fix arch build script version sed expression

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 a0ca911d63)
(cherry picked from commit 9c6be09b23)
This commit is contained in:
Daan De Meyer
2025-04-03 22:44:32 +02:00
committed by Luca Boccassi
parent 64593b164d
commit 2bf1dd9c87

View File

@@ -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.