Fixed: Makepkg can't install dependencies as nobody.

This commit is contained in:
s3lph 2018-10-19 22:25:47 +02:00
parent e5e51acfb4
commit 974d8fc9f1

View file

@ -84,7 +84,7 @@ build_archlinux:
stage: build stage: build
image: base/devel:latest # Use an archlinux image instead of the customized debian image. image: base/devel:latest # Use an archlinux image instead of the customized debian image.
script: script:
- pacman -Sy --noconfirm python python-setuptools python-pip python-wheel - pacman -Sy --noconfirm python python-setuptools python-pip python-wheel python-jinja python-pillow python-magic file
- export MATEMAT_VERSION=$(python -c 'import matemat; print(matemat.__version__)') - export MATEMAT_VERSION=$(python -c 'import matemat; print(matemat.__version__)')
- cp -r static/ package/archlinux/matemat/usr/lib/matemat/static/ - cp -r static/ package/archlinux/matemat/usr/lib/matemat/static/
- cp -r templates/ package/archlinux/matemat/usr/lib/matemat/templates/ - cp -r templates/ package/archlinux/matemat/usr/lib/matemat/templates/
@ -93,7 +93,7 @@ build_archlinux:
- mv matemat/usr/bin/matemat matemat/usr/lib/matemat/matemat - mv matemat/usr/bin/matemat matemat/usr/lib/matemat/matemat
- rm -rf matemat/usr/bin - rm -rf matemat/usr/bin
- sed -re "s/__VERSION__/${MATEMAT_VERSION}/g" -i PKGBUILD - sed -re "s/__VERSION__/${MATEMAT_VERSION}/g" -i PKGBUILD
- sudo -u nobody makepkg --syncdeps - sudo -u nobody makepkg
- mv matemat-${MATEMAT_VERSION}-1-any.pkg.tar.xz "matemat-${MATEMAT_VERSION}+${CI_COMMIT_REF_NAME}-1-any.pkg.tar.xz" - mv matemat-${MATEMAT_VERSION}-1-any.pkg.tar.xz "matemat-${MATEMAT_VERSION}+${CI_COMMIT_REF_NAME}-1-any.pkg.tar.xz"
artifacts: artifacts:
paths: paths: