summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6be58a252b46b01d78d01b31d1f158cd424ce51b (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
# Maintainer: Zack Didcott

pkgname=dtdump-git
pkgver=r6.0877b52
pkgrel=1
pkgdesc="Dump non-encrypted iOS device tree extracted from im4p."
arch=("any")
url="https://github.com/freedomtan/iOS-device-tree-dump"
license=("BSD-3-Clause")
optdepends=("img4lib-git: handle img4 files")
provides=("dtdump")
conflicts=("dtdump")
source=("${pkgname}::git+https://github.com/freedomtan/iOS-device-tree-dump.git")
b2sums=("SKIP")

pkgver() {
    cd "${pkgname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

prepare() {
    git -C "${srcdir}/${pkgname}" clean -dfx
}

build() {
    cd "${pkgname}"
    make all
}

package() {
    cd "${pkgname}"
    install -Dm755 "dtdump" "${pkgdir}/usr/bin/dtdump"
}