Compare commits
No commits in common. "3248cee07fb888866c140788817baf651e2a7c66" and "7d7536520dcf0bdf99f99216799a9ef63daf6493" have entirely different histories.
3248cee07f
...
7d7536520d
2 changed files with 4 additions and 19 deletions
19
.repo/build
19
.repo/build
|
@ -15,7 +15,6 @@ traperr() {
|
|||
trap traperr ERR
|
||||
|
||||
PACKAGES=( "$@" )
|
||||
EXTRA_ARGS=()
|
||||
|
||||
if [ ${#PACKAGES[@]} -eq 0 ]; then
|
||||
echo "${BOLD}${RED}ERROR:${RESET}${BOLD} no packages specified${RESET}"
|
||||
|
@ -25,20 +24,7 @@ fi
|
|||
for package in "${PACKAGES[@]}"; do
|
||||
(
|
||||
# change to package directory
|
||||
cd "$package" || exit 1
|
||||
|
||||
# capture output for parsing dependencies
|
||||
makepkg_output=$(makepkg --printsrcinfo)
|
||||
|
||||
# cache downloaded crates
|
||||
if grep -q "depends = rust\|cargo" <<<"$makepkg_output"; then
|
||||
EXTRA_ARGS+=(--bind-rw /var/cache/cargo:/build/.cargo)
|
||||
fi
|
||||
|
||||
# cache downloaded modules
|
||||
if grep -q "depends = go" <<<"$makepkg_output"; then
|
||||
EXTRA_ARGS+=(--bind-rw /var/cache/golang:/build/go)
|
||||
fi
|
||||
cd "$package" || exit 1;
|
||||
|
||||
# build signed package in chroot & add to local repo
|
||||
aur build \
|
||||
|
@ -46,8 +32,7 @@ for package in "${PACKAGES[@]}"; do
|
|||
--gpg-sign \
|
||||
--remove \
|
||||
--force \
|
||||
--makepkg-conf=/etc/aurutils/makepkg-grawlinson.conf \
|
||||
"${EXTRA_ARGS[@]}"
|
||||
--makepkg-conf=/etc/aurutils/makepkg-grawlinson.conf
|
||||
)
|
||||
done
|
||||
|
||||
|
|
2
fluentd
2
fluentd
|
@ -1 +1 @@
|
|||
Subproject commit f2477d9d1cc43a1d6717cf99e87df02b1669fe17
|
||||
Subproject commit 657cc9ab2307b6dcac6baf53551b19025aea6609
|
Loading…
Reference in a new issue