README
This commit is contained in:
parent
94641417c7
commit
6b7aa4e48b
10
README.md
Normal file
10
README.md
Normal 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
12
zpac
|
@ -1,11 +1,21 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
_self="${0##*/}"
|
||||||
|
|
||||||
cfg_workdir="/tmp/$USER/zpac"
|
cfg_workdir="/tmp/$USER/zpac"
|
||||||
|
|
||||||
echo() { printf '%s\n' "$*"; }
|
echo() { printf '%s\n' "$*"; }
|
||||||
err() { echo "$*" >&2; }
|
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() {
|
aur.get() {
|
||||||
local tarball_url=$(package-query -1 -AS -f %u "$1")
|
local tarball_url=$(package-query -1 -AS -f %u "$1")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user