This repo contains the required files to generate an Archlinux package of gonic, a lightweight music streaming server written in Go, which implements the Subsonic API.
The script update_pkg.sh
can be used to automate the package building and
updating processes. Its workflow is as follows:
- Check if a new version is available from the original repository (or build a specific version if '-v' argument is provided);
- Clone the related AUR repo in a new directory and move to it;
- Update the required files:
- Update
PKGBUILD
(pkgver, md5sums) - Update
.SRCINFO
- Update
- Try to build the package:
- If success and set to update: the script commits and push to GitHub. From there, Drone CI will try to build the package on a bare ArchLinux container.
- If failure: send an email.
./update_pkg.sh usage:
-h | --help) # Display help.
-f | --file) # Path to a PKGBUILD file (default: "./PKGBUILD").
-u | --update) # Update GitHub repository (default: false).
-v | --version) # If a specific semantic version is required (e.g. 0.8.5).
-V | --verbose) # Enable verbose mode (default: false).