48 lines
1.5 KiB
Bash
48 lines
1.5 KiB
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Torsten Keßler <tpkessler at archlinux dot org>
|
|
# Contributor: acxz <akashpatel2008 at yahoo dot com>
|
|
# Contributor: Jakub Okoński <jakub@okonski.org>
|
|
# Contributor: Olaf Leidinger <oleid@mescharet.de>
|
|
# Contributor: Ranieri Althoff <ranisalt+aur at gmail.com>
|
|
|
|
pkgname=hsakmt-roct
|
|
pkgver=6.0.2
|
|
pkgrel=1
|
|
pkgdesc='Radeon Open Compute Thunk Interface'
|
|
arch=(x86_64 powerpc64le powerpc64 riscv64)
|
|
url='https://rocmdocs.amd.com/en/latest/Installation_Guide/ROCt.html'
|
|
license=('MIT')
|
|
depends=('rocm-core' 'glibc' 'numactl' 'pciutils' 'libdrm')
|
|
makedepends=('cmake')
|
|
_git='https://github.com/ROCm/ROCT-Thunk-Interface'
|
|
source=("${pkgname}-${pkgver}.tar.gz::$_git/archive/rocm-$pkgver.tar.gz"
|
|
"hsakmt-global-visibility.patch")
|
|
sha256sums=('5354bda9382f80edad834463f2c684289841770a4f7b13f0f40bd8271cc4c71d'
|
|
'e4c64d33bf5253da947015887487037db5726824586955bf8d3250fcbe8c46f6')
|
|
options=(!lto)
|
|
_dirname="$(basename "$_git")-$(basename "${source[0]}" .tar.gz)"
|
|
|
|
prepare() {
|
|
cd "$_dirname"
|
|
patch -Np1 -i "$srcdir/hsakmt-global-visibility.patch"
|
|
}
|
|
|
|
build() {
|
|
local cmake_args=(
|
|
-Wno-dev
|
|
-S "$_dirname"
|
|
-B build
|
|
-D CMAKE_BUILD_TYPE=None
|
|
-D BUILD_SHARED_LIBS=ON
|
|
-D CMAKE_INSTALL_PREFIX=/opt/rocm
|
|
)
|
|
cmake "${cmake_args[@]}"
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
install -Dm644 "$_dirname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|