summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 973ecaeec2b48fb1dd017715e5526ac5e9bcc07b (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
# Original build: fermyon <antifermion@protonmail.com>
# Maintainer: Jakub OkoĊ„ski <jakub@okonski.org>
_pkgname=rocm-cmake
pkgname="$_pkgname-git"
pkgver=latest
pkgrel=1
pkgdesc="cmake modules for common build tasks needed for the ROCM software stack"
arch=('x86_64')
url="https://github.com/RadeonOpenCompute/rocm-cmake"
license=('MIT')
makedepends=('git' 'cmake')
provides=('rocm-cmake')
conflicts=('rocm-cmake')
source=('git+https://github.com/RadeonOpenCompute/rocm-cmake.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_INSTALL_PREFIX=/opt/rocm \
        "$srcdir/$_pkgname"
}

package() {
  cd "$srcdir/build"

  make DESTDIR="$pkgdir" install
}