This is a terse document covering the anatomy of a package built for the pacman package manager.
The following example commands can mostly run verbatim to manually create a
# set variable | |
_pkgbase=mpv-full-git | |
_pkgbase_cache_dir="$HOME/.cache/yay" | |
_repo_cache_dir="$HOME/Applications/git" | |
_git_url=https://github.com/mpv-player/mpv.git | |
_git_repo="${_git_url%%.git}" | |
_git_repo="${_git_repo##*.com/}" | |
# prepare source code | |
[ -d "${_pkgbase_cache_dir}" ] || mkdir -p "${_pkgbase_cache_dir}" |