gnupg stuff

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2021-03-01 15:43:07 +03:00
parent d07c3748a9
commit 9f1e311b5e
2 changed files with 7 additions and 3 deletions

View File

@ -7,3 +7,6 @@ RUN pacman -Suy --noconfirm base-devel git
COPY ./builder.sudoers /etc/sudoers.d/builder
COPY ./build /build
COPY gnupg /.gnupg
RUN chmod 700 /.gnupg

View File

@ -6,11 +6,12 @@ export LC_ALL=en_US.UTF-8
export PKG_URL=$1
# Upgrade
sudo pacman -Suy --noconfirm
pacman -Suy --noconfirm
# Workdir
chown -R builder:builder /.gnupg
cd /buildroot
# Build the damn thing
git clone "$PKG_URL" .
makepkg -s --noconfirm -L
sudo -u builder git clone "$PKG_URL" .
sudo -u builder GNUPGHOME="/.gnupg" makepkg -s --noconfirm -L