42 lines
679 B
Text
42 lines
679 B
Text
|
#!/bin/bash
|
||
|
set -Eeuo pipefail
|
||
|
|
||
|
RED=$(tput setaf 1)
|
||
|
BOLD=$(tput bold)
|
||
|
RESET=$(tput sgr0)
|
||
|
readonly RED BOLD RESET
|
||
|
|
||
|
traperr() {
|
||
|
s=$?
|
||
|
echo "$0: $BASH_COMMAND"
|
||
|
exit $s
|
||
|
}
|
||
|
|
||
|
trap traperr ERR
|
||
|
|
||
|
PACKAGES=( "$@" )
|
||
|
|
||
|
if [ ${#PACKAGES[@]} -eq 0 ]; then
|
||
|
echo "${BOLD}${RED}ERROR:${RESET}${BOLD} no packages specified${RESET}"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
for package in "${PACKAGES[@]}"; do
|
||
|
(
|
||
|
# change to package directory
|
||
|
cd "$package" || exit 1;
|
||
|
|
||
|
# build signed package in chroot & add to local repo
|
||
|
aur build \
|
||
|
--chroot \
|
||
|
--gpg-sign \
|
||
|
--remove \
|
||
|
--force \
|
||
|
--makepkg-conf=/etc/aurutils/makepkg-grawlinson.conf
|
||
|
)
|
||
|
done
|
||
|
|
||
|
exit 0
|
||
|
|
||
|
# vim: set ts=2 sw=2 et
|