summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc835297caad25be1b0d0ec37d560ceb872e6ac5 (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
# Maintainer: 0x9fff00 <0x9fff00+git@protonmail.ch>
# Contributor: Ivan Shapovalov <intelfx@intelfx.name>
# Contributor: Matthew Bauer <mjbauer95@gmail.com>

pkgname=idevicerestore
pkgver=1.0.0
pkgrel=5
pkgdesc='Restore/upgrade firmware of iOS devices'
arch=('x86_64')
url='https://www.libimobiledevice.org'
# https://github.com/libimobiledevice/idevicerestore/issues/345
license=('LGPL-3.0-only')
depends=('curl' 'libimobiledevice' 'libplist' 'libirecovery' 'libzip' 'openssl' 'zlib')
# https://aur.archlinux.org/packages/idevicerestore-git/#comment-759041
conflicts=('idevicerestore-git')
source=("https://github.com/libimobiledevice/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.bz2"
        '0001-configure.ac-check-for-pthreads.patch')
sha256sums=('32712e86315397fd2e8999e77a2d2f790c67f6b4aa50d4d1c64cb2c4609836f7'
            'fdf51e7f7105af048902fd18f950b6ed7c3f845fc80a225ba43709e9e48a42d5')

prepare() {
  cd "$pkgname-$pkgver"

  patch -Np1 -i "$srcdir/0001-configure.ac-check-for-pthreads.patch"
}

build() {
  cd "$pkgname-$pkgver"

  ./configure --prefix=/usr
  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}