Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Half-asser: mirh
- pkgname=('16.101.X_Repack_Catalyst-Win7_64_17.X.X_')
- pkgver=16.101.2901.1003
- pkgrel=1
- pkgdesc="AMD/ATI Catalyst drivers utilities and libraries."
- arch=('x86_64')
- url="http://www.amd.com"
- license=('custom')
- makedepends=('p7zip>=15.07' 'rsync')
- source=(http://download.windowsupdate.com/c/msdownload/update/driver/drvs/2016/08/20914313_3c31ab0de83f8a6264c0c75883ce366752eeab9d.cab
- http://download.windowsupdate.com/d/msdownload/update/driver/drvs/2016/06/20885003_3519f4d116c54a7a0368e99f528ffe06dfea3304.cab
- http://download.windowsupdate.com/c/msdownload/update/driver/drvs/2017/03/6a405032-a970-44fb-ac93-6fff53822c65_93722c39b14ac032c71ade1c5f7eaa7b40318202.cab
- https://www2.ati.com/drivers/whql-win8.1-64bit-radeon-software-crimson-relive-17.2.1-feb28.exe
- https://www2.ati.com/drivers/beta/amd-catalyst-15.11.1beta-64bit-win10-win8.1-win7-nov14.exe
- https://www2.ati.com/drivers/beta/non-whql-64bit-nieg-radeon-crimson-16.2.1-win10-win8.1-win7-feb27.exe
- )
- sha1sums=('3c31ab0de83f8a6264c0c75883ce366752eeab9d'
- '3519f4d116c54a7a0368e99f528ffe06dfea3304'
- '93722c39b14ac032c71ade1c5f7eaa7b40318202'
- 'f5d9885c7f6f8da47c57c6d94af28d6d709c9cb1'
- '5a37443d499652dfab2bc41ee8ca905e0292c70b'
- 'c744c06ca57b6d2c5c305554e98db42d7d0b3906')
- noextract=("${source[@]##*/}")
- NOBUILD=1
- NOARCHIVE=1
- url_ref="http://support.amd.com/en-us/download/desktop?os=Linux+x86"
- DLAGENTS="https::/usr/bin/curl --referer ${url_ref} -o %o %u"
- prepare() {
- #TODO: only extract the files we *actually* need?
- 7z x -bso0 20914313_3c31ab0de83f8a6264c0c75883ce366752eeab9d.cab -o16.101
- 7z x -bso0 amd-catalyst-15.11.1beta-64bit-win10-win8.1-win7-nov14.exe -obase
- 7z x -bso0 20885003_3519f4d116c54a7a0368e99f528ffe06dfea3304.cab -oOCL
- 7z x -bso0 whql-win8.1-64bit-radeon-software-crimson-relive-17.2.1-feb28.exe -oADL
- 7z x -bso0 6a405032-a970-44fb-ac93-6fff53822c65_93722c39b14ac032c71ade1c5f7eaa7b40318202.cab -oHDMI10
- 7z x -bso0 non-whql-64bit-nieg-radeon-crimson-16.2.1-win10-win8.1-win7-feb27.exe -oHDMI
- cd "${srcdir}"/OCL/b302643/
- install -Dpt "${pkgdir}/Packages/Drivers/Display/WT6A_INF/B305648" {atiumdva.*,atiumd6a.*,amd*o*cl*.dll,clinfo.exe}
- cd "${srcdir}"/ADL/Packages/Drivers/Display/WB6A_INF/B311170/
- 7z e -bso0 'atia*x*.*_' -o"${pkgdir}/Packages/Drivers/Display/WT6A_INF/B305648"
- install -p atiapfxx.blb "${pkgdir}/Packages/Drivers/Display/WT6A_INF/B305648"
- cd "${srcdir}"/HDMI10
- install -Dpt "${pkgdir}/Packages/Drivers/WDM/HDMI/WT64A" *.???
- sed -i -e 's/;%/%/g' "${pkgdir}/Packages/Drivers/WDM/HDMI/WT64A/AtihdWT6.inf"
- cd "${srcdir}"/HDMI/Packages/Drivers
- cp -prn *M* "${pkgdir}/Packages/Drivers"
- cd "${srcdir}"/16.101
- rsync -rt --exclude=ccc2_install.exe --ignore-existing * "${pkgdir}/Packages/Drivers/Display/WT6A_INF"
- cd "${srcdir}"/base
- cp -pr {Bin64,Config,Images,*.dll,*.exe} "${pkgdir}/"
- # forums.guru3d.com/showthread.php?t=373501 seems important, and 15.3xx branch either miss them, or has .sys suspiciously smaller
- cd Packages && cp -pr Drivers/amdkm*fd "${pkgdir}/Packages/Drivers"
- rsync -rt Apps/{ACP64,AppEx,CCC2,CIM,SteadyVideo,VC12RTx64,VC12RTx86,WirelessDisplay64} "${pkgdir}/Packages/Apps"
- #a patch could be shipped to edit .infs (or included inside this script?)
- #patch -Np1 -i ../GPUs.patch
- if [ -e /usr/lib/p7zip/7z.sfx ]; then
- cd "${pkgdir}"/../
- 7z a -sfx7z.sfx magic.exe "${pkgname}"
- else
- warning "You miss the dandy SFXWin module, so.. take care of that"
- fi
- }
Add Comment
Please, Sign In to add comment