summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 238fae2672496231411f0e63a401f4c9e603a393 (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
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: Blacktop <https://github.com/blacktop>

pkgname='ipswd-bin'
pkgver=3.1.456
pkgrel=1
pkgdesc='ipsw - Daemon'
url='https://github.com/blacktop/ipsw'
arch=('aarch64' 'x86_64')
license=('MIT')
provides=('ipsw')
conflicts=('ipsw')
backup=('etc/ipsw.conf')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/blacktop/ipsw/releases/download/v3.1.456/ipswd_3.1.456_linux_arm64.tar.gz")
sha256sums_aarch64=('370cf6c2250951638ae9e36542bf9115a08f5872fe1b9c48f6a84114f9e22540')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/blacktop/ipsw/releases/download/v3.1.456/ipswd_3.1.456_linux_x86_64.tar.gz")
sha256sums_x86_64=('14fdc784f3c77207c7cd05a8a0318501ef8c4970d826c5cf326c9cd972b8456c')

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

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

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

  # config
  mkdir -p "${pkgdir}/etc"
  install -Dm644 "./config.example.yml" "${pkgdir}/etc/ipsw.conf"
}