-
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,10 @@ archives: | |
- completions/* | ||
- manpages/* | ||
source: | ||
enabled: true | ||
name_template: '{{ .ProjectName }}_{{ .Version }}_source' | ||
|
||
brews: | ||
- repository: | ||
owner: goreleaser | ||
|
@@ -221,6 +225,46 @@ aurs: | |
# man pages | ||
install -Dm644 "./manpages/nfpm.1.gz" "${pkgdir}/usr/share/man/man1/nfpm.1.gz" | ||
aur_sources: | ||
- homepage: https://nfpm.goreleaser.com | ||
description: nFPM is a simple, 0-dependencies, deb, rpm and apk packager. | ||
maintainers: | ||
- "Fernandez Ludovic <lfernandez dot dev at gmail dot com>" | ||
- "Carlos Alexandro Becker <carlos at becker dot software>" | ||
license: MIT | ||
private_key: "{{ .Env.AUR_KEY }}" | ||
git_url: "ssh://[email protected]/nfpm.git" | ||
build: |- | ||
cd "${pkgname}-${pkgver}" | ||
export CGO_CPPFLAGS="${CPPFLAGS}" | ||
export CGO_CFLAGS="${CFLAGS}" | ||
export CGO_CXXFLAGS="${CXXFLAGS}" | ||
export CGO_LDFLAGS="${LDFLAGS}" | ||
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" | ||
go build -ldflags="-w -s -buildid='' -linkmode=external -X main.version=v${pkgver}" ./cmd/nfpm | ||
ls -alF | ||
chmod +x "./${pkgname}" | ||
package: |- | ||
cd "${pkgname}-${pkgver}" | ||
ls -alF | ||
# Bin | ||
install -Dsm755 "./${pkgname}" "${pkgdir}/usr/bin/${pkgname}" | ||
# License | ||
install -Dm644 "./LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | ||
# Completions | ||
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/" | ||
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/" | ||
mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/" | ||
./${pkgname} completion bash > "${pkgdir}/usr/share/bash-completion/completions/${pkgname}" | ||
./${pkgname} completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}" | ||
./${pkgname} completion fish > "${pkgdir}/usr/share/fish/vendor_completions.d/${pkgname}.fish" | ||
furies: | ||
- account: goreleaser | ||
|
||
|