Skip to content

Arch/Manjaro auto build, update, install tool for PKGBUILD's from Github, Gitlab and AUR via "makepkg", "devtools", "chrootbuild"

License

Notifications You must be signed in to change notification settings

puxplaying/autogit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autogit

Autogit is a Bash tool to automatically build, update or install Pacman applications from PKGBUILD's available on Github, Gitlab and AUR via configurable makepkg, devtools, or Manjaro chrootbuild commands. It can also create automatically repo names like core, extra, community and create/update a repo database file via repo-add. Additionally it clears each local repo with paccache to only keep the latest package version.

Basically if you want to avoid a "git clone" and the rest of the procedure each time a PKGBUILD has been updated and trust the source, then this tool might be for you. Here are some examples:

  • Auto create your own local repositories, add them to /etc/pacman.conf and update with Pacman.
  • Compile packages from different sources into one repository while building all in a clean "chroot", e.g. AUR, Gitlab, Github.
  • Compile the same package from different branches into different repositories, or add a "-git" PKGBUILD for development on a different branch etc.
  • Use "makepkg" to directly install packages after compilation.

Two different options are available to compare and update applications. In case of a "-git" package it checks for the latest commit to update and can either run once or in a loop with a timer setting.

More information on how to set it up is available in autogit.conf, examples are included.

Currently the AUR, 6 Github and 6 Gitlab sources are available to use. There is no limitation of packages for each source, which need to be added to the reponames folder source files.

In sum 13 different repos can be enabled/created and will be updated together.


How to install:

This package is available on Manjaro and the AUR.

From source:

  • sudo pacman -Syu base-devel git
  • git clone https://github.com/puxplaying/autogit.git
  • cd autogit
  • makepkg -srci

How to run:

  • Run autogit after installation to create a local configuration
  • autogit -h (Help Page and fzf-UI options to manage packages)
Welcome to Autogit's Help Page!

Autogit runs by default without flags.
In order to run autogit, edit the options in
"/YourDirectory/autogit/autogit.conf"

The provided flags will run a fzf UI to manage packages.

autogit [options]:

-e, --edit        - [EDIT]
                    Edit Package List Entries (Commenting With '#' Is Supported)
                    NOTE: Make Sure That The (EDITOR) Environment Variable Is Set On Your System!

-d, --dryrun      - [DRY RUN]
                    Dry Run To Remove Packages - (Nothing Will Be Touched)

-b, --build       - [REBUILD PACKAGES]
                    Remove Package Source(s), Binary(s) And Rebuild The Packge(s)

-r, --remove      - [REMOVE PACKAGES]
                    Remove Package Source(s), Binary(s), Package List Entry(s),
                    Old Database Files And Run "repo-add" If Enabled

-h, --help        - This Help Text

To run it automatically without a password prompt for chrootbuild, it can be added to sudoers via:

echo "$USER ALL = NOPASSWD: /usr/bin/chrootbuild" | sudo tee /etc/sudoers.d/$USER


123

About

Arch/Manjaro auto build, update, install tool for PKGBUILD's from Github, Gitlab and AUR via "makepkg", "devtools", "chrootbuild"

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages