summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b7bac00915df0a86c17559f70b2bed0ea726cb4e (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
35
36
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
pkgname=hipcpu-git
_pkgname=hipCPU
pkgver=latest
pkgrel=1
pkgdesc="Implementation of AMD HIP for CPUs"
arch=('i686' 'x86_64')
url="http://github.com/illuhad/hipCPU"
license=('BSD')
depends=('openmp')
makedepends=('git' 'cmake')
provides=('hipcpu')
conflicts=('hipcpu')
source=("git+https://github.com/illuhad/hipCPU.git")
sha256sums=('SKIP')

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

build() {
  mkdir -p "$srcdir/build"
  cd "$srcdir/build"

  cmake -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr \
        "$srcdir/$_pkgname"
  make
}

package() {
  cd "$srcdir/build"

  make DESTDIR="$pkgdir" install
}