summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6279aad767647e194b6818e9645eb463c7cc964 (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
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: Julian Tölle <julian.toelle97@gmail.com>

pkgname='hcloud-upload-image-bin'
pkgver=0.3.1
pkgrel=1
pkgdesc='Manage custom OS images on Hetzner Cloud.'
url='https://github.com/apricote/hcloud-upload-image'
arch=('aarch64' 'i686' 'x86_64')
license=('MIT')
provides=('hcloud-upload-image')
conflicts=('hcloud-upload-image')
depends=('openssh')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/apricote/hcloud-upload-image/releases/download/v0.3.1/hcloud-upload-image_Linux_arm64.tar.gz")
sha256sums_aarch64=('5790d22e7efc8c0809feabbf0de66eeb91e7462370c719834f31ededb9dc0cbc')

source_i686=("${pkgname}_${pkgver}_i686.tar.gz::https://github.com/apricote/hcloud-upload-image/releases/download/v0.3.1/hcloud-upload-image_Linux_i386.tar.gz")
sha256sums_i686=('08bf4f6814be7de5cc03774187e981de3ada92a6ae1bd1fbd6857d1daf9e3aee')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/apricote/hcloud-upload-image/releases/download/v0.3.1/hcloud-upload-image_Linux_x86_64.tar.gz")
sha256sums_x86_64=('1f4cfc6bdf2f66053ab02e58b883cf88de2c94eafa5a35fb8d1b829ac093adde')

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

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