Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
8ba3c36d4a | |||
3d960cd6e4 | |||
048d64fc46 |
@@ -8,3 +8,5 @@ A very simple AUR/ABS helper. Doesn't build packages, only gets the sources.
|
|||||||
-h Show this message.
|
-h Show this message.
|
||||||
-s Search for <package>.
|
-s Search for <package>.
|
||||||
-d Get the package sources (default).
|
-d Get the package sources (default).
|
||||||
|
|
||||||
|
You can override any value in the script in \$HOME/.config/zpac.rc.sh
|
||||||
|
8
zpac
8
zpac
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
_self="${0##*/}"
|
_self="${0##*/}"
|
||||||
|
|
||||||
cfg_workdir="/tmp/$USER/zpac"
|
cfg_workdir="$PWD"
|
||||||
cfg_aur_url='https://aur.archlinux.org'
|
cfg_aur_url='https://aur.archlinux.org'
|
||||||
cfg_aur_api="${cfg_aur_url}/rpc.php"
|
cfg_aur_api="${cfg_aur_url}/rpc.php"
|
||||||
|
|
||||||
@@ -86,8 +86,6 @@ aur.get() {
|
|||||||
if (( aur_deps_count )); then
|
if (( aur_deps_count )); then
|
||||||
aur_deps=$( jshon -e results -a -e Name -u <<< "$aur_deps_api_data" )
|
aur_deps=$( jshon -e results -a -e Name -u <<< "$aur_deps_api_data" )
|
||||||
|
|
||||||
echo "${aur_deps[@]}"
|
|
||||||
|
|
||||||
for i in "${aur_deps[@]}"; do
|
for i in "${aur_deps[@]}"; do
|
||||||
aur.get < <(aur.info "$i") || {
|
aur.get < <(aur.info "$i") || {
|
||||||
return "$?"
|
return "$?"
|
||||||
@@ -113,6 +111,10 @@ abs.get() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
if [[ -f "$HOME/.config/zpac.rc.sh" ]]; then
|
||||||
|
source "$HOME/.config/zpac.rc.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
while (( $# )); do
|
while (( $# )); do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--help|-h) usage; return 0;;
|
--help|-h) usage; return 0;;
|
||||||
|
Reference in New Issue
Block a user