You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-15 01:34:21 +02:00
feat: implement nfpm archlinux packages (#3470)
<!-- Hi, thanks for contributing! Please make sure you read our CONTRIBUTING guide. Also, add tests and the respective documentation changes as well. --> <!-- If applied, this commit will... --> This PR implements the Archlinux packages that were added in nfpm v2.20.0, as well as tests and documentation for them. <!-- Why is this change being made? --> <!-- # Provide links to any relevant tickets, URLs or other resources --> goreleaser/nfpm#133 goreleaser/nfpm#543 Fixes #3469 Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
# Linux packages (via nFPM)
|
||||
|
||||
GoReleaser can be wired to [nfpm](https://github.com/goreleaser/nfpm) to
|
||||
generate and publish `.deb`, `.rpm` and `.apk` packages.
|
||||
generate and publish `.deb`, `.rpm`, `.apk`, and Archlinux packages.
|
||||
|
||||
Available options:
|
||||
|
||||
@ -67,6 +67,7 @@ nfpms:
|
||||
- deb
|
||||
- rpm
|
||||
- termux.deb # Since GoReleaser v1.11.
|
||||
- archlinux
|
||||
|
||||
# Packages your package depends on. (overridable)
|
||||
dependencies:
|
||||
@ -364,6 +365,22 @@ nfpms:
|
||||
# is matched to the public key store in /etc/apk/keys/<key_name>.rsa.pub.
|
||||
# If unset, it defaults to the maintainer email address.
|
||||
key_name: origin
|
||||
archlinux:
|
||||
# Archlinux-specific scripts
|
||||
scripts:
|
||||
# The preupgrade script runs before pacman upgrades the package.
|
||||
preupgrade: ./scripts/preupgrade.sh
|
||||
# The postupgrade script runs after pacman upgrades the package.
|
||||
postupgrade: ./scripts/postupgrade.sh
|
||||
|
||||
# The pkgbase can be used to explicitly specify the name to be used to refer
|
||||
# to a group of packages. See: https://wiki.archlinux.org/title/PKGBUILD#pkgbase.
|
||||
pkgbase: foo
|
||||
|
||||
# The packager refers to the organization packaging the software, not to be confused
|
||||
# with the maintainer, which is the person who maintains the software.
|
||||
packager: GoReleaser <staff@goreleaser.com>
|
||||
|
||||
```
|
||||
|
||||
!!! tip
|
||||
|
Reference in New Issue
Block a user