summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 40bc13030e3dab3ae14e002cd983a7f2cebf281c (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
# Maintainer: 0x9fff00 <0x9fff00+git@protonmail.ch>

_pkgname=igetnonce
pkgname=$_pkgname-s0uthwest-git
pkgver=r10.6443eb5
pkgrel=4
pkgdesc="Tool for checking booted iOS device nonces - s0uthwest's fork - git version"
arch=('x86_64')
url="https://github.com/s0uthwest/$_pkgname"
license=('unknown')
depends=('libimobiledevice' 'libirecovery' 'libplist')
makedepends=('git')
provides=('igetnonce' 'igetnonce-s0uthwest')
conflicts=('igetnonce')
source=("git+$url.git"
        '0001-Fix-incorrect-language-standard.patch'
        '0002-Update-libirecovery-and-libusbmuxd-names-for-1.0.0-2.patch')
sha256sums=('SKIP'
            '4a6c57f0926c815652ed2fd15ef6f64a1e0dadd7dcbfcf01b246600d597d6fbd'
            '8c1bfb8f9ea691b834fcf987f8046f500048146d068c3f60520bf67b1f384050')

pkgver() {
  cd "$_pkgname"

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$_pkgname"

  patch -Np1 -i "$srcdir/0001-Fix-incorrect-language-standard.patch"
  patch -Np1 -i "$srcdir/0002-Update-libirecovery-and-libusbmuxd-names-for-1.0.0-2.patch"
}

build() {
  cd "$_pkgname"

  ./autogen.sh --prefix=/usr
  make
}

package() {
  cd "$_pkgname"

  make DESTDIR="$pkgdir/" install
}