summaryrefslogtreecommitdiff
path: root/libre/cbootimage/PKGBUILD
blob: 0da635fe76d2c9c7bf462ead3448729ac1f90bd5 (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
# Tegra BCT and bootable flash image generator/compiler
# Maintainer (Arch): Kevin Mihelich <kevin@archlinuxarm.org>

buildarch=4

pkgname=cbootimage
pkgver=r68.b7d5b2d
pkgrel=1
pkgdesc="Tegra BCT and bootable flash image generator/compiler"
arch=('armv7h')
url="https://github.com/NVIDIA/cbootimage.git"
makedepends=('git')
license=('GPL')
source=("git+https://github.com/NVIDIA/cbootimage.git")
md5sums=('SKIP')

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

build() {
  cd cbootimage

  ./autogen.sh --prefix=/usr
  make
}

package() {
  cd cbootimage

  make DESTDIR="${pkgdir}" install
}