summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a347fc0dacd8bede87d7a3d7f83dffa54770d291 (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
37
38
39
40
41
# Maintainer: acxz <akashpatel2008 at yahoo dot com>

pkgname=hipcpu-git
pkgver=r18.d5b28e3
pkgrel=1
pkgdesc="Implementation of AMD HIP for CPUs"
arch=('i686' 'x86_64')
url="http://github.com/illuhad/hipCPU"
license=('BSD 2-Clause')
depends=('openmp')
makedepends=('git' 'cmake')
provides=('hipcpu')
conflicts=('hipcpu')
_name=hipCPU
source=("git+https://github.com/illuhad/hipCPU.git")
sha256sums=('SKIP')

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

build() {

  cd "${srcdir}/${_name}"

  mkdir -p build

  cd "${srcdir}/${_name}/build"

  cmake .. -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr

  make
}

package() {
  cd "${srcdir}/${_name}/build"

  make DESTDIR=${pkgdir} install
}