summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bffd34304680371320bab3a9c6de212007daaf34 (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
# Contributor: Ivan Semkin (ivan at semkin dot ru)
# Contributor: Anatol Pomozov

_pkgname=bootimg-tools
pkgname=bootimg-tools-git
pkgver=r11.a7540ac
pkgrel=1
pkgdesc='Android boot.img creation and extraction tools'
url='https://github.com/pbatard/bootimg-tools'
license=(Apache)
arch=(x86_64)
depends=(glibc)
makedepends=(git)
conflicts=(android-tools)
source=(git://github.com/pbatard/bootimg-tools)
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  echo r$(git rev-list --count master).$(git rev-parse --short master)
}

build() {
  cd "$_pkgname"
  make
}

package() {
  install -m755 -d "$pkgdir/usr/bin"
  install -m755 -t "$pkgdir/usr/bin" bootimg-tools/mkbootimg/{mkbootimg,unmkbootimg}
}