Skip to content
Snippets Groups Projects
Commit 96dda1fe authored by Torsten Keßler's avatar Torsten Keßler
Browse files

Migrate rocminfo from AUR to community

parents
No related branches found
Tags 1.5.4-1
No related merge requests found
PKGBUILD 0 → 100644
# Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
# Contributor: Markus Näther <naetherm@cs.uni-freiburg.de>
# Contributor: Jakub Okoński <jakub@okonski.org>
# Contributor: Ranieri Althoff <ranisalt+aur at gmail.com>
# Contributor: acxz <akashpatel2008 at yahoo dot com>
pkgname=rocminfo
pkgver=5.4.1
pkgrel=2
pkgdesc='ROCm Application for Reporting System Info '
arch=('x86_64')
url='https://github.com/RadeonOpenCompute/rocminfo'
license=('custom:NCSAOSL')
depends=('pciutils' 'python' 'hsa-rocr')
makedepends=('rocm-cmake')
source=("$pkgname-$pkgver.tar.gz::$url/archive/rocm-$pkgver.tar.gz")
sha256sums=('633a7d5bc6bc7b99c85c1f87fd41b32cd704c4a1b0b2a61f3c7a871ce93bc772')
_dirname="$(basename "$url")-$(basename "${source[0]}" .tar.gz)"
build() {
# ROCRTST_BLD_TYPE=Release fixes a build error regarding _FORTIFY_SOURCE=2
cmake \
-Wno-dev \
-B build \
-S "$_dirname" \
-DCMAKE_PREFIX_PATH=/opt/rocm \
-DROCRTST_BLD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/rocm \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "$_dirname/License.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
#! /usr/bin/env sh
/opt/rocm/bin/rocminfo
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment