Created
December 10, 2018 11:14
-
-
Save rigred/d5df1647d4c718dd28c1a9035cadbdd7 to your computer and use it in GitHub Desktop.
Path to upgrade to version 18.40 opencl-amd AUR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- PKGBUILD-18.30 2018-12-10 13:12:01.363017487 +0200 | |
+++ PKGBUILD 2018-12-09 16:44:50.307845560 +0200 | |
@@ -2,7 +2,7 @@ | |
pkgname=opencl-amd | |
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='18.30.641594' | |
+pkgver=18.40.697810 | |
pkgrel=1 | |
arch=('x86_64') | |
url='http://www.amd.com' | |
@@ -12,15 +12,16 @@ | |
conflicts=('amdgpocl') | |
provides=('opencl-driver') | |
-DLAGENTS='https::/usr/bin/wget --referer https://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Driver-for-Linux-Release-Notes.aspx -N %u' | |
+DLAGENTS='https::/usr/bin/wget --referer https://www.amd.com/en/support/kb/release-notes/rn-prorad-lin-18-40 -N %u' | |
prefix='amdgpu-pro-' | |
-major='18.30' | |
-minor='641594' | |
+postfix='-ubuntu-18.04' | |
+major='18.40' | |
+minor='697810' | |
shared="opt/amdgpu-pro/lib/x86_64-linux-gnu" | |
-source=("https://www2.ati.com/drivers/linux/ubuntu/${prefix}${major}-${minor}.tar.xz") | |
-sha256sums=('d02becad3cb17fbcaf188129838b72a7337e743ed4f918a8ba605fbc2c7310a3') | |
+source=("https://drivers.amd.com/drivers/linux/${prefix}${major}-${minor}${postfix}.tar.xz") | |
+sha256sums=('3995f3d0d705a3362fd0f4f1cbadfaad3f677c4c10bc3385f99d9c9e205dd8e9') | |
pkgver() { | |
echo "${major}.${minor}" | |
@@ -29,16 +30,16 @@ | |
package() { | |
mkdir "${srcdir}/opencl" | |
cd "${srcdir}/opencl" | |
- ar x "${srcdir}/${prefix}${major}-${minor}/opencl-amdgpu-pro-icd_${major}-${minor}_amd64.deb" | |
+ ar x "${srcdir}/${prefix}${major}-${minor}${postfix}/opencl-amdgpu-pro-icd_${major}-${minor}_amd64.deb" | |
tar xJf data.tar.xz | |
- ar x "${srcdir}/${prefix}${major}-${minor}/opencl-orca-amdgpu-pro-icd_${major}-${minor}_amd64.deb" | |
+ ar x "${srcdir}/${prefix}${major}-${minor}${postfix}/opencl-orca-amdgpu-pro-icd_${major}-${minor}_amd64.deb" | |
tar xJf data.tar.xz | |
cd ${shared} | |
sed -i "s|libdrm_amdgpu|libdrm_amdgpo|g" libamdocl-orca64.so | |
mkdir "${srcdir}/libdrm" | |
cd "${srcdir}/libdrm" | |
- ar x "${srcdir}/${prefix}${major}-${minor}/libdrm-amdgpu-amdgpu1_2.4.92-${minor}_amd64.deb" | |
+ ar x "${srcdir}/${prefix}${major}-${minor}${postfix}/libdrm-amdgpu-amdgpu1_2.4.92-${minor}_amd64.deb" | |
tar xJf data.tar.xz | |
cd ${shared/amdgpu-pro/amdgpu} | |
rm "libdrm_amdgpu.so.1" | |
@@ -61,4 +62,3 @@ | |
rm -r "${srcdir}/libdrm" | |
} | |
- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment