mirror of
https://github.com/goreleaser/nfpm
synced 2024-06-01 22:16:25 +02:00
a18661b627
* feat: add support for Arch Linux packages * test: Add initial tests * test: Increase coverage by modifying example info * test: Add test for ArchLinux.ConventionalFileName() * docs: Return error if package name is invalid * fix: Make empty name invalid * fix: Add replaces field to .PKGINFO generator * test: Add additional tests * test: Test for added replaces field * docs: Add more comments * style: Run gofumpt * fix: Handle errors as recommended by linter * fix: Allow changing the pkgbase * style: Resolve semgrep findings * docs: Change docs to reflect new Arch Linux packager * docs: Fix spelling mistake in comment Co-authored-by: Dj Gilcrease <digitalxero@gmail.com> * docs: use aspell to fix all spelling mistakes * feat: Handle packaging formats with non-distinct file extensions as described in #546 * fix: Add newline to generated .INSTALL file * fix: Take into account provided info for non-symlink files * docs: Fix names for arch-specific scripts in documentation * fix: Only consider files with the correct packager field * fix: Use correct scripts field for post_remove script * test: Implement archlinux acceptance tests * test: Add archlinux to acceptance_test.go * test: Add archlinux to github test matrix * test: Use updated build.yml from main branch * Fix ConventionalExtension() for apk * fix: Take epoch value into account * fix: Add arm5 and arm6 architectures Co-authored-by: Dj Gilcrease <digitalxero@gmail.com> Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
72 lines
1.6 KiB
YAML
72 lines
1.6 KiB
YAML
name: "foo"
|
|
arch: "${BUILD_ARCH}"
|
|
platform: "linux"
|
|
version: "v1.2.3-beta"
|
|
maintainer: "Foo Bar"
|
|
depends:
|
|
- bash
|
|
provides:
|
|
- fake
|
|
recommends:
|
|
- fish
|
|
replaces:
|
|
- foo
|
|
suggests:
|
|
- zsh
|
|
description: |
|
|
Foo bar
|
|
Multiple lines
|
|
vendor: "foobar"
|
|
homepage: "https://foobar.org"
|
|
license: "MIT"
|
|
contents:
|
|
- src: ./testdata/fake
|
|
dst: /usr/local/bin/fake
|
|
- src: ./testdata/acceptance/folder/*
|
|
dst: /usr/share/whatever/folder/
|
|
- src: ./testdata/whatever.conf
|
|
dst: /etc/foo/whatever.conf
|
|
type: config
|
|
- src: ./testdata/fake
|
|
dst: /usr/sbin/fake
|
|
packager: deb
|
|
file_info:
|
|
mode: 04755
|
|
- src: ./testdata/fake
|
|
dst: /usr/sbin/fake
|
|
packager: rpm
|
|
file_info:
|
|
mode: 04755
|
|
- src: ./testdata/fake
|
|
dst: /usr/sbin/fake
|
|
packager: apk
|
|
file_info:
|
|
mode: 04755
|
|
- src: ./testdata/fake
|
|
dst: /usr/bin/fake
|
|
file_info:
|
|
mode: 04755
|
|
packager: archlinux
|
|
- dst: /usr/foo/bar/something
|
|
type: dir
|
|
- dst: /var/log/whatever
|
|
type: dir
|
|
- dst: /usr/share/foo
|
|
type: dir
|
|
scripts:
|
|
preinstall: ./testdata/acceptance/scripts/preinstall.sh
|
|
postinstall: ./testdata/acceptance/scripts/postinstall.sh
|
|
preremove: ./testdata/acceptance/scripts/preremove.sh
|
|
postremove: ./testdata/acceptance/scripts/postremove.sh
|
|
rpm:
|
|
scripts:
|
|
pretrans: ./testdata/acceptance/scripts/pretrans.sh
|
|
posttrans: ./testdata/acceptance/scripts/posttrans.sh
|
|
apk:
|
|
scripts:
|
|
preupgrade: ./testdata/acceptance/scripts/preupgrade.sh
|
|
postupgrade: ./testdata/acceptance/scripts/postupgrade.sh
|
|
archlinux:
|
|
scripts:
|
|
preupgrade: ./testdata/acceptance/scripts/preupgrade.sh
|
|
postupgrade: ./testdata/acceptance/scripts/postupgrade.sh |