PKGBUILD management framework for the Arch User Repository
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
completion
.gitignore
LICENSE
Makefile Implement _aurpublish zsh completions. Aug 23, 2018
README.md
aurpublish.in Make the help text slightly more accurate about the modes supported Jul 30, 2018
import-from-aur3.sh
pre-commit.hook aurpublish: log should accept standard `git log` arguments Dec 26, 2016
prepare-commit-msg.hook

README.md

PKGBUILD management framework for the Arch User Repository

Install

The standard make && sudo make install routine is used. The following additional variables are supported:

  • DESTDIR -- staged installs for distro packaging
  • PREFIX -- where to install generated script, defaults to /usr/local
  • HOOKSDIR -- where to install githooks, defaults to <PREFIX>/share/aurpublish

How it works

Commit PKGBUILDs in named subdirectories. Export them to the AUR with the aurpublish command, using the subtree push stratagem. This preserves an independent history for third-party hosting, pull requests... ;)

Commands

  • aurpublish setup

Initialize a new repository with githooks.

  • aurpublish PACKAGE

Push PACKAGE to the AUR. With "--speedup", merges the split history back in.

  • aurpublish -p PACKAGE

Pull package from the AUR (if you adopted an existing package, or have a co-maintainer).

  • aurpublish log PACKAGE

View the git log of a package subtree.

  • import-from-aur3.sh PACKAGE

Experimental. Download the history of a non-migrated AUR3 package, and commit it to a new subtree.

Hooks

  • pre-commit

Warn about whitespace errors, fail if checksums don't match, and auto-generate .SRCINFO for all changed PKGBUILDs.

  • prepare-commit-msg

Prefill the commit message with a list of added/updated/deleted packages + versions (if any).

Copyright

The helper scripts (aurpublish, *.sh, *.hook) demonstrated here are licensed under the GPLv2 or (at your option) any later version.