Date: Monday, December 19, 2022 @ 15:21:15 Author: tpkessler Revision: 1361575
Migrate hsa-rocr from AUR to community Added: hsa-rocr/ hsa-rocr/repos/ hsa-rocr/trunk/ hsa-rocr/trunk/PKGBUILD ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Added: hsa-rocr/trunk/PKGBUILD =================================================================== --- hsa-rocr/trunk/PKGBUILD (rev 0) +++ hsa-rocr/trunk/PKGBUILD 2022-12-19 15:21:15 UTC (rev 1361575) @@ -0,0 +1,40 @@ +# Maintainer: Torsten Keßler <tpkessler at archlinux dot org> +# Contributor: acxz <akashpatel2008 at yahoo dot com> +# Contributor: Olaf Leidinger <[email protected]> +# Contributor: Bruno Filipe <[email protected]> +# Contributor: Jakub Okoński <[email protected]> +# Contributor: Ranieri Althoff <ranisalt+aur at gmail.com> + +pkgname=hsa-rocr +pkgver=5.4.1 +pkgrel=2 +pkgdesc='HSA Runtime API and runtime for ROCm' +arch=('x86_64') +url='https://rocmdocs.amd.com/en/latest/Installation_Guide/ROCR-Runtime.html' +license=('custom:NCSAOSL') +depends=('libelf' 'hsakmt-roct' 'rocm-device-libs') +makedepends=('cmake' 'rocm-llvm' 'xxd') +_git='https://github.com/RadeonOpenCompute/ROCR-Runtime' +source=("${pkgname}-${pkgver}.tar.gz::$_git/archive/rocm-$pkgver.tar.gz") +sha256sums=('f306bf15803d2de07e5b9d6e7040ecba043ff1c91efdc14e6d576a1d7902f8f0') +_dirname="$(basename "$_git")-$(basename "${source[0]}" .tar.gz)" +options=(!lto) + +build() { + cmake \ + -Wno-dev \ + -B build \ + -S "$_dirname/src" \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/opt/rocm \ + -DCMAKE_PREFIX_PATH=/opt/rocm + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build + + install -Dm644 "$_dirname/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + echo "/opt/rocm/hsa/lib" > "$pkgname.conf" + install -Dm644 "$pkgname.conf" "$pkgdir/etc/ld.so.conf.d/$pkgname.conf" +}
