Skip to content

Commit 9c6be09

Browse files
committed
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 a0ca911)
1 parent 1c93ed4 commit 9c6be09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ EOF
5959
TS="${SOURCE_DATE_EPOCH:-$(date +%s)}"
6060

6161
sed "pkg/$PKG_SUBDIR/PKGBUILD" \
62-
--expression "s/^_tag=.*/_tag=$(cat meson.version)/" \
62+
--expression "s/^pkgver=.*/pkgver=$(cat meson.version)/" \
6363
--expression "s/^pkgrel=.*/pkgrel=$(date "+%Y%m%d%H%M%S" --date "@$TS")/" >/tmp/PKGBUILD
6464
mount --bind /tmp/PKGBUILD "pkg/$PKG_SUBDIR/PKGBUILD"
6565

0 commit comments

Comments
 (0)