This commit is contained in:
Jack L. Frost 2015-01-27 18:41:12 +03:00
parent 94641417c7
commit 6b7aa4e48b
2 changed files with 21 additions and 1 deletions

10
README.md Normal file
View File

@ -0,0 +1,10 @@
zpac
----
A very simple AUR/ABS helper. Doesn't build packages, only gets the sources.
$ zpac -h
Usage: zpac [flags] <package>
Flags:
-h Show this message.
-s Search for <package>.
-d Get the package sources (default).

12
zpac
View File

@ -1,11 +1,21 @@
#!/usr/bin/env bash
_self="${0##*/}"
cfg_workdir="/tmp/$USER/zpac"
echo() { printf '%s\n' "$*"; }
err() { echo "$*" >&2; }
usage() { echo "No help available."; }
usage() {
while read; do echo "$REPLY"; done <<- EOF
Usage: $_self [flags] <package>
Flags:
-h Show this message.
-s Search for <package>.
-d Get the package sources (default).
EOF
}
aur.get() {
local tarball_url=$(package-query -1 -AS -f %u "$1")