updated PKGBUILD

This commit is contained in:
Oscar Krause
2022-12-28 15:57:55 +01:00
parent bb43fc3f49
commit 321cd17b02
2 changed files with 16 additions and 15 deletions

View File

@@ -46,11 +46,16 @@ build:pamac:
stage: build
rules:
- if: $CI_COMMIT_BRANCH == "archlinux-makepkg"
before_script:
- useradd --no-create-home --shell=/bin/false build && usermod -L build
- 'echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
- 'echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
- chown -R build:build .
script:
- ls -lah
- makepkg --help
- makepkg -si
- source PKGBUILD && pacman -Syu --noconfirm --needed --asdeps "${makedepends[@]}" "${depends[@]}"
- ls -lah
- sudo -u build makepkg --noextract #makepkg -si
test:
image: python:3.10-slim-bullseye