summarylogtreecommitdiffstats
path: root/dockerscript.sh
blob: a06b43991454bc4585aae65fb0d58c5b8c7db29f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash

#
# This script is called by build.sh and actually does the AUR build inside a Docker container.
# It is not used in the AUR builds in any way, and is only for debugging purposes.
#

set -e

pacman -Sy --noconfirm
pacman -S git --noconfirm
echo 'yay ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers
useradd -d /home/yay -g users -m -s /bin/bash yay
cd /tmp
sudo -u yay git clone https://aur.archlinux.org/yay-bin.git
cd /tmp/yay-bin
sudo -u yay makepkg -si --noconfirm
sudo -u yay yay -S --noconfirm ferdium-nightly
cp /home/yay/.cache/yay/ferdium/ferdium-nightly-*.pkg.tar.zst /tmp/output