Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Add SYNC_DATABASE option
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Jun 11, 2022
1 parent 707988a commit 00b2643
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ Extra details

* `base-devel` is preinstalled.
* All `depends` will be installed (including AUR packages using [paru](https://github.com/Jguer/paru)).
* You may pass `SYNC_DATABASE=1` to force a `pacman -Sy` to refresh the
database, since it updates quite frequently.
* GPG keys used to verify signatures are auto-fetched.

Licence
Expand Down
5 changes: 5 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ set -e
cp -r /pkg /tmp/pkg
cd /tmp/pkg

# Sync database
if [ -n "$SYNC_DATABASE" ]; then
paru -S --refresh
fi

# Do the actual building. Paru will fetch all dependencies for us (including
# AUR dependencies) and then build the package.
paru -U --noconfirm
Expand Down

0 comments on commit 00b2643

Please sign in to comment.