This commit is contained in:
Daniel Langbein 2021-09-08 22:32:03 +02:00
parent 783d622fe9
commit 6600d5c1a1
3 changed files with 7 additions and 4 deletions

View File

@ -10,6 +10,7 @@ They were added in the following manner:
```shell ```shell
AUR_PKG=amdgpu-pro-installer AUR_PKG=amdgpu-pro-installer
git submodule add "https://aur.archlinux.org/${AUR_PKG}.git" pkg/"${AUR_PKG}" git submodule add "https://aur.archlinux.org/${AUR_PKG}.git" pkg/"${AUR_PKG}"
# echo " ${AUR_PKG}" >> build-pkg/pkglist-AUR.txt
``` ```
And can be removed with: And can be removed with:

View File

@ -26,6 +26,10 @@ function start-docker() {
esac esac
} }
function update-build-image() {
sudo docker-compose build --pull
}
function build-pkg() { function build-pkg() {
# $1: package-name # $1: package-name
# $2, $3, ...: makepkg-args # $2, $3, ...: makepkg-args
@ -87,6 +91,8 @@ before continuing with the next line.";
is-installed "docker-compose" || return $? is-installed "docker-compose" || return $?
} }
update-build-image || return $?
# Read content of PKGLIST file to an array # Read content of PKGLIST file to an array
# For each line: build and push all space separated packages # For each line: build and push all space separated packages

View File

@ -9,10 +9,6 @@ function main(){
# Write-permission for user "build" # Write-permission for user "build"
sudo chown "build:wheel" /out sudo chown "build:wheel" /out
# Refresh mirrors
# TODO: Move this to the Dockerfile?
sudo pacman -Sy
PKG=/pkg/"${1}" PKG=/pkg/"${1}"
shift; # remove first arg shift; # remove first arg
echo "Looking for PKGBUILD in ${PKG} ..." echo "Looking for PKGBUILD in ${PKG} ..."