summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b5acc6732d03b98eb30796d3b670c06a8f80e901 (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
# Copyright (C) 2020 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

pkgname=fso-unbootimg
pkgver=0.1.2
pkgrel=2
pkgdesc="Utility to unpack images made with Android's mkbootimg"
arch=('armv7h' 'i686' 'x86_64')
url='git://github.com/freesmartphone/utilities.git'
license=('MIT')
depends=('zlib')
makedepends=('git')
_commit=('4566e120fc80fd372f68b20e044387bd97218bfd')
source=("git+https://github.com/freesmartphone/utilities.git#commit=${_commit}")
sha256sums=('SKIP')

prepare() {
  cd "$srcdir/utilities/android/image-utils"
  ./autogen.sh
}

build() {
  cd "$srcdir/utilities/android/image-utils"
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package(){
  cd "$srcdir/utilities/android/image-utils"
  make DESTDIR="$pkgdir" install
  rm -f $pkgdir/usr/bin/fastboot
  rm -f $pkgdir/usr/bin/mkbootimg
  install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}