Ensure source dir name doesn't collide with package name
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
abb84b4bd4
commit
2f5ff0027f
1 changed files with 5 additions and 3 deletions
|
@ -10,8 +10,10 @@ sudo mkdir -p "$OUTDIR"
|
||||||
sudo chown -R builder:builder "$OUTDIR"
|
sudo chown -R builder:builder "$OUTDIR"
|
||||||
|
|
||||||
export PKGDEST="$OUTDIR"
|
export PKGDEST="$OUTDIR"
|
||||||
export SRCDEST="$HOME"
|
export SRCDEST="$HOME/sources"
|
||||||
export BUILDDIR="$HOME"
|
export BUILDDIR="$HOME/builddir"
|
||||||
|
mkdir -p "$SRCDEST"
|
||||||
|
mkdir -p "$BUILDDIR"
|
||||||
|
|
||||||
if [ "$PLUGIN_AUTO_MAKEFLAGS" != "no" ]; then
|
if [ "$PLUGIN_AUTO_MAKEFLAGS" != "no" ]; then
|
||||||
echo "MAKEFLAGS='-j$(nproc)'" | sudo tee -a /etc/makepkg.conf
|
echo "MAKEFLAGS='-j$(nproc)'" | sudo tee -a /etc/makepkg.conf
|
||||||
|
@ -43,6 +45,6 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Running build"
|
echo "Running build"
|
||||||
makepkg -sAc --skippgpcheck --noconfirm --noprogressbar "$PKGBUILD"
|
makepkg -sAc --skippgpcheck --noconfirm --noprogressbar
|
||||||
|
|
||||||
sudo chown -R root:root "$OUTDIR"
|
sudo chown -R root:root "$OUTDIR"
|
||||||
|
|
Loading…
Reference in a new issue