blob: 58ea9659f09d298b4078f38d227259e4af88f43a (
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
|
# Maintainer: Fernandez Ludovic <lfernandez dot dev at gmail dot com>
pkgname='nfpm'
pkgver=v2.7.0
pkgrel=1
pkgdesc='A simple deb and rpm packager written in Go '
url='https://github.com/goreleaser/nfpm'
arch=('x86_64')
license=('MIT')
depends=()
makedepends=()
_basedownloadurl="${url}/releases/download/v${pkgver#v}"
source=("${_basedownloadurl}/${pkgname}_${pkgver#v}_linux_${arch}.tar.gz")
sha256sums=('00219e382f8a9145198d0dad81bbc8100310463b83cc78c69a27d6bb14975f32')
package() {
# Bin
rm -f "${pkgdir}/usr/bin/${pkgname}"
install -Dm755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
# License
install -Dm644 "${srcdir}/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|