summaryrefslogtreecommitdiff
path: root/pcr/mkbootimg/PKGBUILD
blob: 00ef110fd91fd4842221e35fef4b3f51a99a70f7 (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
# Based on android-tooks PKGBUILD in community
# (git://git.archlinux.org/svntogit/community.git) which has the following
# header:
#     Maintainer: Anatol Pomozov
#     Contributor: 謝致邦 <Yeking@Red54.com>
#     Contributor: Alucryd <alucryd at gmail dot com>

# Maintainer (AUR): Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>

# parabola changes and rationale:
#  no changes.

pkgname=mkbootimg
pkgver=31.0.0
_tag=${pkgver}p1 # https://github.com/nmeum/android-tools carries extra patch version on top of the upstream versioning
pkgrel=3
pkgdesc='Tool to create and/or unpack Android boot images'
arch=('any')
url='https://github.com/nmeum/android-tools'
license=(Apache)
# python: for mkbootimg & avbtool scripts
# python2: for unpack_bootimg script
depends=(python python2)
source=(https://github.com/nmeum/android-tools/releases/download/$_tag/android-tools-$_tag.tar.xz)
sha256sums=('51a4c3ba5f16945905449c4bd2c1c781a4df7469f6b7362f8837f4f640d8c7b6')

package() {
  cd android-tools-$_tag

  install -d "$pkgdir"/usr/bin/
  install -m 755 vendor/mkbootimg/mkbootimg.py      "$pkgdir"/usr/bin/mkbootimg
  install -m 755 vendor/mkbootimg/unpack_bootimg.py "$pkgdir"/usr/bin/unpack_bootimg
}