mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-24 13:32:46 +00:00

The synaptic mst test wants to open its test files as r/w, however as the arch build runs as user nobody that won't work unless the test files are also owned by user nobody. To make that happen, copy the source tree rather then symlinking it Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
27 lines
641 B
Bash
Executable File
27 lines
641 B
Bash
Executable File
#!/bin/bash
|
||
set -e
|
||
set -x
|
||
shopt -s extglob
|
||
|
||
VERSION=`git describe | sed 's/-/.r/;s/-/./'`
|
||
[ -z $VERSION ] && VERSION=`head meson.build | grep ' version :' | cut -d \' -f2`
|
||
|
||
# prepare the build tree
|
||
rm -rf build
|
||
mkdir build && pushd build
|
||
cp ../contrib/PKGBUILD .
|
||
sed -i "s,#VERSION#,$VERSION," PKGBUILD
|
||
mkdir -p src/fwupd && pushd src/fwupd
|
||
cp -R ../../../!(build|dist) .
|
||
popd
|
||
chown nobody . -R
|
||
|
||
# build the package and install it
|
||
sudo -E -u nobody makepkg -e --noconfirm
|
||
pacman -U --noconfirm *.pkg.tar.xz
|
||
|
||
# move the package to working dir
|
||
mv *.pkg.tar.xz ../dist
|
||
|
||
# no testing here because gnome-desktop-testing isn’t available in Arch
|