3 Commits
v2.0 ... v2.1

Author SHA1 Message Date
fbt
8ba3c36d4a config support, README 2015-01-28 00:06:21 +03:00
fbt
3d960cd6e4 Config support 2015-01-28 00:05:27 +03:00
fbt
048d64fc46 stray debug message 2015-01-27 23:58:11 +03:00
2 changed files with 7 additions and 3 deletions

View File

@@ -8,3 +8,5 @@ A very simple AUR/ABS helper. Doesn't build packages, only gets the sources.
-h Show this message.
-s Search for <package>.
-d Get the package sources (default).
You can override any value in the script in \$HOME/.config/zpac.rc.sh

8
zpac
View File

@@ -5,7 +5,7 @@
_self="${0##*/}"
cfg_workdir="/tmp/$USER/zpac"
cfg_workdir="$PWD"
cfg_aur_url='https://aur.archlinux.org'
cfg_aur_api="${cfg_aur_url}/rpc.php"
@@ -86,8 +86,6 @@ aur.get() {
if (( aur_deps_count )); then
aur_deps=$( jshon -e results -a -e Name -u <<< "$aur_deps_api_data" )
echo "${aur_deps[@]}"
for i in "${aur_deps[@]}"; do
aur.get < <(aur.info "$i") || {
return "$?"
@@ -113,6 +111,10 @@ abs.get() {
}
main() {
if [[ -f "$HOME/.config/zpac.rc.sh" ]]; then
source "$HOME/.config/zpac.rc.sh"
fi
while (( $# )); do
case "$1" in
--help|-h) usage; return 0;;