summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff73a55e76d54d505bd2c52adea77ee9b3b60fc0 (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
# Maintainer: Swift Geek

pkgname=flashmap-git
_pkgname=${pkgname%-*}
pkgver=a
pkgrel=1
pkgdesc="ChromiumOS flashmap"
arch=('x86_64' 'armv7h')
url="https://chromium.googlesource.com/chromiumos/third_party/flashmap/"
license=('GPL2')
depends=('glibc')
makedepends=('git')
source=("git+https://chromium.googlesource.com/chromiumos/third_party/flashmap/")
md5sums=('SKIP')

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

prepare() {
  cd "$srcdir/$_pkgname"
  sed -i 's#$(prefix)/sbin#$(prefix)/bin#' Makefile
}

build() {
  cd "$srcdir/${_pkgname}/"
  make
}

package() {
  cd "$srcdir/${_pkgname}/"
  make DESTDIR="${pkgdir}" install
}