summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8742629e286e0cac53854258415b026dbb062458 (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
# Maintainer: Bet4 <0xbet4@gmail.com>

pkgname=libipt-git
pkgver=814.892e12c
pkgrel=1
pkgdesc='An Intel(R) Processor Trace decoder library'
arch=(i686  x86_64)
url='https://github.com/intel/libipt'
makedepends=(git cmake)
source=("${pkgname}::git+${url}.git")
md5sums=(SKIP)

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

build() {
  cd "${pkgname}"

  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_BUILD_TYPE=Release .
  make
}

package() {
  cd "${pkgname}"
  make DESTDIR="${pkgdir}" install
}