summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 80321d58954435a819606548220cfe3656a4e6ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: Fernandez Ludovic <lfernandez dot dev at gmail dot com>
# Maintainer: Carlos Alexandro Becker <carlos at becker dot software>

pkgname='nfpm-bin'
pkgver=2.41.1
pkgrel=1
pkgdesc='nFPM is a simple, 0-dependencies, deb, rpm and apk packager.'
url='https://nfpm.goreleaser.com'
arch=('aarch64' 'x86_64')
license=('MIT')
provides=('nfpm')
conflicts=('nfpm')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/goreleaser/nfpm/releases/download/v2.41.1/nfpm_2.41.1_Linux_arm64.tar.gz")
sha256sums_aarch64=('17350a838c8e2c422c6e573ed379b18424565d2de8a2b1cb1b20211976124eb5')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/goreleaser/nfpm/releases/download/v2.41.1/nfpm_2.41.1_Linux_x86_64.tar.gz")
sha256sums_x86_64=('b3cf95aa6dabed836d09ad7f0c190a13c74c5b1304db60846f0f702ee407f430')

package() {
  # bin
  install -Dm755 "./nfpm" "${pkgdir}/usr/bin/nfpm"
  # license
  install -Dm644 "./LICENSE.md" "${pkgdir}/usr/share/licenses/nfpm/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/"
  install -Dm644 "./completions/nfpm.bash" "${pkgdir}/usr/share/bash-completion/completions/nfpm"
  install -Dm644 "./completions/nfpm.zsh" "${pkgdir}/usr/share/zsh/site-functions/_nfpm"
  install -Dm644 "./completions/nfpm.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/nfpm.fish"
  # man pages
  install -Dm644 "./manpages/nfpm.1.gz" "${pkgdir}/usr/share/man/man1/nfpm.1.gz"
}