summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 152d9505247f62a7652b7c181a832ee7f33bd831 (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: Jakub Okoński <jakub@okonski.org>
# Maintainer: Markus Näther <naetherm@cs.uni-freiburg.de>
pkgname=rocminfo
pkgver=3.1.0
pkgrel=2
pkgdesc="ROCm info tools - rocm_agent_enumerator"
arch=('x86_64')
url="https://github.com/RadeonOpenCompute/rocminfo"
license=('custom:NCSAOSL')
depends=('pciutils' 'rocm-cmake' 'rocr-runtime' 'hsakmt-roct')
makedepends=('cmake')
source=("https://github.com/RadeonOpenCompute/rocminfo/archive/roc-$pkgver.tar.gz")
sha256sums=('f024fef05e5ea5bc7316d4bddb5562cbac7048183c351cdb8afd4156ff4c049c')

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

  cmake -DCMAKE_PREFIX_PATH=/opt/rocm \
        -DCMAKE_INSTALL_PREFIX=/opt/rocm \
        -DROCM_DIR=/opt/rocm \
        "$srcdir/$pkgname-roc-$pkgver"
  make
}

package() {
  cd "$srcdir/build"

  make DESTDIR="$pkgdir" install
}