# Copyright (C) 2020 Denis 'GNUtoo' Carikli # This program is free software: you can redistribute it and/or modify # it under the terms of the CC0 1.0 License. # Maintainers: Parabola hackers 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 }