Skip to content

Commit

Permalink
feat(builder): Download source files to specific directory
Browse files Browse the repository at this point in the history
  • Loading branch information
JustTNE committed Apr 13, 2024
1 parent 1a4b3a4 commit 2364508
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builder-container/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

PKGOUT="/home/builder/pkgout/"
PKGSRC="/home/builder/pkgsrc/"
PACKAGE="$1"
BUILDDIR="/home/builder/build/"

Expand Down Expand Up @@ -83,7 +84,7 @@ function setup-buildenv {
function build-pkg {
set -eo pipefail
printf "\nBuilding package...\n"
sudo -D "${BUILDDIR}" -u builder PKGDEST="${PKGOUT}" makepkg --skippgpcheck -s --noconfirm || { echo "Failed to build package!" && return 1; }
sudo -D "${BUILDDIR}" -u builder PKGDEST="${PKGOUT}" SRCDEST="${PKGSRC}" makepkg --skippgpcheck -s --noconfirm || { echo "Failed to build package!" && return 1; }
}

function check-pkg {
Expand Down

0 comments on commit 2364508

Please sign in to comment.