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.
This commit is contained in:
committed by
Luca Boccassi
parent
e39062b0ba
commit
a0ca911d63
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user