summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b129383694c00ebf29069160bd0793bf81fa32dd (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
36
37
38
39
40
41
42
43
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: Purple Clay <purple clay at gmail dot com>

pkgname='dns53-bin'
pkgver=0.10.0
pkgrel=1
pkgdesc='Dynamic DNS within Amazon Route53. Expose your EC2 quickly, easily and privately'
url='https://github.com/purpleclay/dns53'
arch=('aarch64' 'armv7h' 'i686' 'x86_64')
license=('MIT')
provides=('dns53')
conflicts=('dns53')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/purpleclay/dns53/releases/download/v0.10.0/dns53_0.10.0_linux-arm64.tar.gz")
sha256sums_aarch64=('45ef499056daacde4ba42d0350ac295f591d9a06d83def4b462cd943cd098e27')

source_armv7h=("${pkgname}_${pkgver}_armv7h.tar.gz::https://github.com/purpleclay/dns53/releases/download/v0.10.0/dns53_0.10.0_linux-arm.tar.gz")
sha256sums_armv7h=('de1b38a8a2f72532ef7caf9ba397d8f7e12d08e24ac8d65270046b6f0ffdf493')

source_i686=("${pkgname}_${pkgver}_i686.tar.gz::https://github.com/purpleclay/dns53/releases/download/v0.10.0/dns53_0.10.0_linux-i386.tar.gz")
sha256sums_i686=('796fb880fb2a37e71465df6b5d8b62c89eb6fcd51879a648578f4626870061d1')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/purpleclay/dns53/releases/download/v0.10.0/dns53_0.10.0_linux-x86_64.tar.gz")
sha256sums_x86_64=('aeba0094cd66d43af3e3cd53a1910f636dd133e5d3c06c14a8f9f77a4748d1b7')

package() {
  # bin
  install -Dm755 "./dns53" "${pkgdir}/usr/bin/dns53"

  # license
  install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/dns53/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/dns53.bash" "${pkgdir}/usr/share/bash-completion/completions/dns53"
  install -Dm644 "./completions/dns53.zsh" "${pkgdir}/usr/share/zsh/site-functions/_dns53"
  install -Dm644 "./completions/dns53.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/dns53.fish"

  # manpages
  install -Dm644 "./manpages/dns53.1.gz" "${pkgdir}/usr/share/man/man1/dns53.1.gz"
}