summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 602dcef3ef4077db6207a32d5a33bdb1ccdde8ec (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
# Maintainer: chaewon <64337177+authorisation@users.noreply.github.com>

pkgname=achilles-git
pkgver=r51.9cb87ab
pkgrel=1
pkgdesc="Achilles is a checkm8 utility for macOS and Linux that offers a selection of tools for vulnerable devices."
arch=(x86_64)
url="https://github.com/alfiecg24/Achilles"
license=('MIT')
groups=()
depends=('libimobiledevice-git' 'libusbmuxd-git')
makedepends=('git')
provides=(achilles)
source=("git+https://github.com/alfiecg24/Achilles" "0001-chore-lowercase-achilles-bin.patch" "0002-fix-broken-import.patch")
md5sums=('SKIP'
         '22dcce17c5eebed40712bdac9ed0b275'
         'e66f3b0f4f2d6659c97ede91d6ea9f4a')

prepare() {
    cd Achilles

    patch --forward --strip=1 --input="${srcdir}/0001-chore-lowercase-achilles-bin.patch"
    patch --forward --strip=1 --input="${srcdir}/0002-fix-broken-import.patch"
}

function pkgver() {
  cd Achilles

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

build() {
  cd Achilles

  make
}

package() {
  cd Achilles

  make DESTDIR="$pkgdir" install
}