Repository that contains AUR packages for hale-studio and hale-cli.
This repository is based on a template for maintaining Arch User Repository (AUR) packages automatically using Renovate. Check out my AUR packages repository to see it working.
Check out the breakdown on @JamieMagee's blog for a step-by-step walkthrough. The short version is:
- Renovate will open PRs to update the
pkgver - GitHub Actions will run
updpkgsumsandmakepkg --printsrcinfo > .SRCINFOfor each PR - When a PR is merged GitHub Actions will publish the package to the AUR (if you've configured the
AUR_USERNAME,AUR_EMAILandAUR_SSH_PRIVATE_KEYsecrets).
- Add a new directory with the package name
- Manually create your
PKGBUILDand.SRCINFO - Add a comment after pkgver with the Renovate datasource and package name
pkgver=1.2.3 # renovate: datasource=github-tags depName=git/git
Each subfolder represents a package build. Change to the respective subfolder and use the following commands to update, build and install it.
You can update the checksums automatically with:
updpkgsumsThis will update the sha256sums array in your PKGBUILD in place.
Alternatively, to generate checksums manually:
makepkg -gThen copy the output into the sha256sums array in the PKGBUILD.
- Install base-devel and git if not already installed:
sudo pacman -S --needed base-devel git
- Clone this repository and enter the directory:
git clone <this-repo-url> cd aur-hale-studio-bin
- Build the package:
makepkg -si
- The
-sflag installs missing dependencies. - The
-iflag installs the package after building.
- The
If you make changes to the PKGBUILD after building:
- You must rebuild the package for changes to take effect.
- If the package does not update, force a rebuild with:
The
makepkg -fsi
-f(force) flag overwrites any existing package file and ensures a full rebuild. - Alternatively, clean up old build files first:
makepkg -C makepkg -si
After making changes to the PKGBUILD, update the .SRCINFO file with:
makepkg --printsrcinfo > .SRCINFOThis ensures the AUR metadata is up to date and should be done before pushing changes to the AUR.
To remove the package, use pacman:
sudo pacman -R hale-studio-binAll code in this repository is licensed under the MIT license.
See the license property in each PKGBUILD for the license under which each package is distributed.