summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bcb73cf4f5daf8f5081142742171d423f6458240 (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
# Maintainer: sanpe <sanpeqf@gmail.com>
pkgname=coremark-git
_gitname=coremark
pkgver=r50.45faaf8
pkgrel=1
pkgdesc="CoreMark® is an industry-standard benchmark that measures the performance of central processing units (CPU) and embedded microcrontrollers (MCU)."
arch=(any)
url="https://github.com/eembc/coremark.git"
license=('GPL')
makedepends=('git')
source=("${_gitname}::git+${url}")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_gitname}"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd "${srcdir}/${_gitname}"
  make compile
}

package() {
  cd "${srcdir}/${_gitname}"
  install -Dm755 coremark.exe "${pkgdir}/usr/bin/coremark"
}