Page MenuHomePhabricator

Add a script to update the AUR packages
ClosedPublic

Authored by Fabien on Aug 27 2020, 16:12.

Details

Reviewers
jasonbcox
Group Reviewers
Restricted Project
Commits
rABC5fb5f30831dc: Add a script to update the AUR packages
Summary

For each AUR package, this script:

  1. Completes/generates the package files
  2. Applies the changes to the upstream git repository
  3. Runs a full package build from the updated files
  4. Commit the changes and push to upstream

It requires an archlinux environment to run (with all the tools
installed) and a git user with write permission to the upstream
directory.

The sha256 checksums are removed from the PKGBUILD file as they are
regenerated by the script to reduce maintenance on the file.

The python package was missing as a dependency and would cause the
build to fail if not already installed on the user machine.

A README is added to explain how to update the packages using the
script.

Depends on D7260.

Test Plan

Ran the build in an archlinux container and checked everything worked
excepted the final push.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Aug 27 2020, 16:12
jasonbcox requested changes to this revision.Aug 27 2020, 21:50
jasonbcox added a subscriber: jasonbcox.
jasonbcox added inline comments.
contrib/aur/bitcoin-abc-qt/PKGBUILD
10 ↗(On Diff #23061)

Is python always python3?

contrib/aur/bitcoin-abc/PKGBUILD
10 ↗(On Diff #23061)

ditto

contrib/aur/update-aur.sh
7 ↗(On Diff #23061)

Can you give a comment for this? You described it to me during our meeting.

This revision now requires changes to proceed.Aug 27 2020, 21:50
contrib/aur/bitcoin-abc-qt/PKGBUILD
10 ↗(On Diff #23061)

Yes on archlinux

contrib/aur/update-aur.sh
7 ↗(On Diff #23061)

The comment is on the chmod line but I can add one here also

Commment on nobody, typo

This revision is now accepted and ready to land.Aug 27 2020, 21:57
This revision was automatically updated to reflect the committed changes.