diff options
author | George Sofianos | 2021-12-26 17:01:11 +0200 |
---|---|---|
committer | George Sofianos | 2021-12-26 17:01:11 +0200 |
commit | b00716ec7ec2446ae213cf9e9d650eece9a6b9e4 (patch) | |
tree | 12ee62029d346f82806681c5a215e92ecda789c4 | |
download | aur-b00716ec7ec2446ae213cf9e9d650eece9a6b9e4.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..969547836fcf --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = opencl-amd-dev + pkgdesc = OpenCL userspace driver as provided in the amdgpu-pro driver stack. This package is intended to work along with the free amdgpu stack. + pkgver = 21.40.2.1350682 + pkgrel = 1 + url = http://www.amd.com + arch = x86_64 + license = custom:AMD + makedepends = wget + depends = opencl-amd + conflicts = rocm-opencl-runtime + source = https://repo.radeon.com/rocm/apt/4.5.2/pool/main/r/rocm-llvm/rocm-llvm_13.0.0.21432.40502_amd64.deb + sha256sums = abf2fff149b37fcd7deeac89124ba519d5efe77bb989d79e09020deb07d2feb3 + +pkgname = opencl-amd-dev diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..89064fe73623 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Release notes https://rocmdocs.amd.com/en/latest/Current_Release_Notes/Current-Release-Notes.html +major='21.40.2' +minor='1350682' +rocm_major='40502' +rocm_minor='164' +amdgpu_repo='https://repo.radeon.com/amdgpu/21.40.2/ubuntu' +rocm_repo='https://repo.radeon.com/rocm/apt/4.5.2' +opencl_lib='opt/rocm-4.5.2/opencl/lib' +rocm_lib='opt/rocm-4.5.2/lib' +hip_lib='opt/rocm-4.5.2/hip/lib/' +amdgpu="opt/amdgpu/lib/x86_64-linux-gnu" +amdgpu_pro="opt/amdgpu-pro/lib/x86_64-linux-gnu/" + +pkgname=opencl-amd-dev +pkgdesc="OpenCL userspace driver as provided in the amdgpu-pro driver stack. This package is intended to work along with the free amdgpu stack." +pkgver=${major}.${minor} +pkgrel=1 +arch=('x86_64') +url='http://www.amd.com' +license=('custom:AMD') +makedepends=('wget') +depends=('opencl-amd') +conflicts=('rocm-opencl-runtime') + +source=( +"https://repo.radeon.com/rocm/apt/4.5.2/pool/main/r/rocm-llvm/rocm-llvm_13.0.0.21432.40502_amd64.deb" +) + +sha256sums=( +"abf2fff149b37fcd7deeac89124ba519d5efe77bb989d79e09020deb07d2feb3" +) + +#Extract .xz files +exz() { + ar x $1 + tar xJf data.tar.xz +} +#Extract .gz files +egz() { + ar x $1 + tar xfx data.tar.gz +} + +package() { + exz "${srcdir}/rocm-llvm_13.0.0.21432.40502_amd64.deb" + + mv "${srcdir}/opt/" "${pkgdir}/" +}
\ No newline at end of file |