]>
code.delx.au - monosys/blob - archpkg/aur-build
6 if [ -z "$PKGNAME" ]; then
7 echo "Usage: $0 pkgname"
13 if [ ${#MAKEPKG_CMD[@]} -eq 0 ]; then
14 MAKEPKG_CMD
=("makepkg" "-sr")
17 function enter_directory
{
22 function fetch_latest_changes
{
23 if [ ! -d .git
]; then
25 git remote add origin
"https://aur.archlinux.org/${PKGNAME}"
28 git
reset origin
/master
35 function ask_user_to_continue
{
36 read -r -p "Ok? (y/n) " ok
37 if [ "$ok" != "y" ]; then
42 function build_and_install
{
47 enter_directory
"/var/abs/${PKGNAME}"