summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 58a2eb3adc63e691620ae76c3cfd5c039b0d2682 (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: Popolon <popolon aL popolon d.t org>
pkgname=c2clat-git
_pkgname=c2clat
pkgver=r12.5419682
pkgrel=1
pkgdesc="A tool to measure CPU core to core latency"
arch=("$CARCH")
url="https://github.com/rigtorp/c2clat"
license=('MIT')
depends=()
makedepends=('git' 'gcc')
optdepends=('gnuplot: Draw graphs from output')
source=("git+https://github.com/rigtorp/${_pkgname}")
sha256sums=('SKIP')

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

build() {
  cd "${_pkgname}"
  g++ -O3 -DNDEBUG c2clat.cpp -o c2clat -pthread
}

package() {
  cd "${_pkgname}/"
  install -Dm755 c2clat  "$pkgdir/usr/bin/c2clat"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}