summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1c7da124c2bdf6ad869b0e4afbbb997da2b9a8b3 (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
44
45
46
47
48
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: Blacktop <https://github.com/blacktop>

pkgname='ipsw-bin'
pkgver=3.1.327
pkgrel=1
pkgdesc='iOS/macOS Research Swiss Army Knife'
url='https://github.com/blacktop/ipsw'
arch=('aarch64' 'aarch64' 'x86_64' '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.327/ipsw_3.1.327_linux_arm64.tar.gz")
sha256sums_aarch64=('1da01e79e5e753d3cc43cd8b02ffae8a5b39d4c4c4c44ca0ea021089206a1dc5')

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

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/blacktop/ipsw/releases/download/v3.1.327/ipsw_3.1.327_linux_x86_64.tar.gz")
sha256sums_x86_64=('471efa6344bd49d9d53d5ce484b66a5d6a6662f3211e7088d6f4d398404f9a1f')

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

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

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

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

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