"Update/initialize submodules from your AUR account"]
base_menu=m.menu("How might I assist you today?",base_options,"Select an operation ('q' to quit):")
pkg={}
ifbase_menu==1:
add_options=["Release/versioned",
"VCS (Git, SVN, Mercurial, etc.)"]
add_menu=m.menu("What type of package is this?",add_options,"Package type ('q' to quit):")
elifbase_menu==2:
pkg['oper']='sign'
elifbase_menu==3:
pkg['oper']='submodule'
# If they selected to add a package and it's a VCS package...
ifadd_menu==2:
vcs_options=["Git",
"Subversion (svn)",
"Mercurial (hg)",
"Bazaar (bzr)"]
vcs_menu=m.menu("What type of VCS system?",vcs_options,"VCS type ('q' to quit):")
pkg['name']=input("\nWhat is the name of your package? (Exclude the '-git' etc. suffix)\n").lower()
srcurl=input("\nWhat is the checkout URL for {0}?\n(Do not include the directory or VCS type prefix as per\nhttps://wiki.archlinux.org/index.php/VCS_package_guidelines#VCS_sources ...\nit will be added automatically)\n".format(pkg['name']))
pkg['desc']=input("\nWhat is a short description of {0}?\n".format(pkg['name']))
pkg['site']=input("\nWhat is {0}'s website?\n".format(pkg['name']))
pkg['license']=[]
license_raw=input("\nWhat is {0}'s license(s)? (See https://wiki.archlinux.org/index.php/PKGBUILD#license)\nIf you have more than one, separate them by spaces.\n".format(pkg['name']).upper())
pkg['license']=list(map(str,license_raw.split()))
pkg['deps']=[]
deps_raw=input("\nWhat does {0} depend on for runtime? if no packages, just hit enter.\nMake sure they correspond to Arch/AUR package names.\nIf you have more than one, separate them by spaces.\n".format(pkg['name']))
pkg['deps']=list(map(str,deps_raw.split()))
pkg['optdeps']=[]
optdeps_raw=input("\nWhat does {0} optionally depend on (runtime)? if no packages, just hit enter.\nMake sure they correspond to Arch/AUR package names.\nIf you have more than one, separate them by COMMAS.\nThey should follow this format:\npkgname: some reason why it should be installed\n".format(pkg['name']))
makedeps_raw=input("\nWhat dependencies are required for building/making {0}? If no packages, just hit enter.\nMake sure they correspond to Arch/AUR package names.\nIf you have more than one, separate them by spaces.\n".format(pkg['name']))
provides_raw=input("\nWhat package names, if any besides itself, does {0} provide?\n(If {0} is a VCS package, do NOT include the non-VCS package name- that's added by default!)\nIf you have more than one, separate them by spaces.\n".format(pkg['name']))
conflicts_raw=input("\nWhat package names, if any, does {0} conflict with?\n(If {0} is a VCS package, do NOT include the non-VCS package name- that's added by default!)\nIf you have more than one, separate them by spaces.\n".format(pkg['name']))