Date: Monday, December 19, 2022 @ 14:47:07 Author: tpkessler Revision: 1361567
Migrate hsakmt-roct from AUR Added: hsakmt-roct/ hsakmt-roct/repos/ hsakmt-roct/trunk/ hsakmt-roct/trunk/PKGBUILD ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Added: hsakmt-roct/trunk/PKGBUILD =================================================================== --- hsakmt-roct/trunk/PKGBUILD (rev 0) +++ hsakmt-roct/trunk/PKGBUILD 2022-12-19 14:47:07 UTC (rev 1361567) @@ -0,0 +1,40 @@ +# Maintainer: Torsten Keßler <tpkessler at archlinux dot org> +# Contributor: acxz <akashpatel2008 at yahoo dot com> +# Contributor: Jakub Okoński <[email protected]> +# Contributor: Olaf Leidinger <[email protected]> +# Contributor: Ranieri Althoff <ranisalt+aur at gmail.com> + +pkgname=hsakmt-roct +pkgver=5.4.1 +pkgrel=2 +pkgdesc='Radeon Open Compute Thunk Interface' +arch=('x86_64') +url='https://rocmdocs.amd.com/en/latest/Installation_Guide/ROCt.html' +license=('MIT') +depends=('numactl' 'pciutils' 'libdrm') +makedepends=('cmake') +checkdepends=('rocm-llvm') +_git='https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface' +source=("${pkgname}-${pkgver}.tar.gz::$_git/archive/rocm-$pkgver.tar.gz") +sha256sums=('c1f728cc285d1feb80120b485f8c06b64e7580df8ecd47a448bc4ff923bac2b3') +options=(!lto) +_dirname="$(basename "$_git")-$(basename "${source[0]}" .tar.gz)" + +build() { + cmake \ + -B build \ + -Wno-dev \ + -S "$_dirname" \ + -DCMAKE_BUILD_TYPE=None \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_INSTALL_PREFIX=/opt/rocm + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build + + install -Dm644 "$_dirname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + echo '/opt/rocm/lib' > "$pkgname.conf" + install -Dm644 "$pkgname.conf" "$pkgdir/etc/ld.so.conf.d/$pkgname.conf" +}
