summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanusz Lewandowski2016-03-29 00:45:39 +0200
committerJanusz Lewandowski2016-03-29 00:50:55 +0200
commit6eed4701b02b819d19f09f5b14227155f5c7cba8 (patch)
tree5668978a299ac259bdbd5e1356ed351e3f70dc6e
downloadaur-6eed4701b02b819d19f09f5b14227155f5c7cba8.tar.gz
Might work... Cannot test, as AMDGPU does not work on my Athlon 5350.
-rw-r--r--.SRCINFO289
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD580
-rw-r--r--gen-PKGBUILD.py168
4 files changed, 1040 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..16e9192e4f7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,289 @@
+pkgbase = amdgpu-pro-installer
+ pkgver = 16.15.2
+ pkgrel = 277429
+ url = http://www.amd.com
+ arch = x86_64
+ source = https://www2.ati.com/drivers/beta/amdgpu-pro_16.15.2-277429.tar.xz
+ sha256sums = e857cc74959706c276328b5876dfeba7d1ec0cbfacf966b607c50a748f7f5233
+
+pkgname = amdgpu-pro
+ pkgdesc = This package install all amdgpu-pro components.
+ arch = x86_64
+ depends = amdgpu-pro-graphics=16.15.2-277429
+ depends = amdgpu-pro-computing=16.15.2-277429
+
+pkgname = amdgpu-pro-clinfo
+ pkgdesc = AMD OpenCL info utility
+ arch = x86_64
+ depends = amdgpu-pro-libopencl1
+
+pkgname = amdgpu-pro-computing
+ pkgdesc = This package install amdgpu-pro OpenCL components.
+ arch = x86_64
+ depends = amdgpu-pro-core=16.15.2-277429
+ depends = amdgpu-pro-clinfo=16.15.2-277429
+ depends = amdgpu-pro-opencl-icd=16.15.2-277429
+ depends = amdgpu-pro-libopencl-dev=16.15.2-277429
+
+pkgname = amdgpu-pro-core
+ pkgdesc = This package switchs the GPU stack to amdgpu-pro with basic components.
+ arch = x86_64
+ depends = amdgpu-pro-firmware=16.15.2-277429
+ depends = libdrm-amdgpu-pro-amdgpu1=16.15.2-277429
+
+pkgname = amdgpu-pro-dkms
+ pkgdesc = amdgpu-pro driver in DKMS format.
+ arch = any
+ depends = dkms>=1.95
+
+pkgname = amdgpu-pro-firmware
+ pkgdesc = Firmware for amdgpu-pro cards.
+ arch = x86_64
+ depends =
+
+pkgname = amdgpu-pro-graphics
+ pkgdesc = This package install amdgpu-pro graphics components.
+ arch = x86_64
+ depends = amdgpu-pro-core=16.15.2-277429
+ depends = libgles2-amdgpu-pro=16.15.2-277429
+ depends = libgl1-amdgpu-pro-dev=16.15.2-277429
+ depends = libgl1-amdgpu-pro-dri=16.15.2-277429
+ depends = xserver-xorg-video-amdgpu-pro=16.15.2-277429
+ depends = amdgpu-pro-vulkan-driver=16.15.2-277429
+ depends = libvdpau-amdgpu-pro=16.15.2-277429
+
+pkgname = lib32-amdgpu-pro-lib32
+ pkgdesc = This package contains x86 libs for x86_64 machine usage.
+ arch = x86_64
+ depends = lib32-libgles2-amdgpu-pro=16.15.2-277429
+ depends = lib32-libgl1-amdgpu-pro-dev=16.15.2-277429
+ depends = lib32-libgl1-amdgpu-pro-dri=16.15.2-277429
+ depends = lib32-libgbm1-amdgpu-pro=16.15.2-277429
+ depends = lib32-amdgpu-pro-opencl-icd=16.15.2-277429
+ depends = lib32-amdgpu-pro-libopencl-dev=16.15.2-277429
+ depends = lib32-amdgpu-pro-vulkan-driver=16.15.2-277429
+
+pkgname = lib32-amdgpu-pro-libopencl-dev
+ pkgdesc = AMD OpenCL ICD Loader library
+ arch = x86_64
+ depends = lib32-amdgpu-pro-libopencl1=16.15.2-277429
+
+pkgname = amdgpu-pro-libopencl-dev
+ pkgdesc = AMD OpenCL ICD Loader library
+ arch = x86_64
+ depends = amdgpu-pro-libopencl1=16.15.2-277429
+
+pkgname = lib32-amdgpu-pro-libopencl1
+ pkgdesc = AMD OpenCL ICD Loader library
+ arch = x86_64
+ depends =
+
+pkgname = amdgpu-pro-libopencl1
+ pkgdesc = AMD OpenCL ICD Loader library
+ arch = x86_64
+ depends =
+
+pkgname = amdgpu-pro-opencl-icd
+ pkgdesc = non-free AMD OpenCL ICD Loaders
+ arch = x86_64
+ depends =
+
+pkgname = lib32-amdgpu-pro-opencl-icd
+ pkgdesc = non-free AMD OpenCL ICD Loaders
+ arch = x86_64
+ depends =
+
+pkgname = lib32-amdgpu-pro-vulkan-driver
+ pkgdesc = AMDGPU Pro Vulkan driver
+ arch = x86_64
+ depends = lib32-libdrm-amdgpu-pro-amdgpu1
+ depends = lib32-libx11
+ depends = lib32-libxcb
+ depends = lib32-libxcb>=1.9.2
+ depends = lib32-libxext
+ depends = lib32-libxshmfence
+
+pkgname = amdgpu-pro-vulkan-driver
+ pkgdesc = AMDGPU Pro Vulkan driver
+ arch = x86_64
+ depends = libdrm-amdgpu-pro-amdgpu1
+ depends = libx11
+ depends = libxcb
+ depends = libxcb>=1.9.2
+ depends = libxext
+ depends = libxshmfence
+
+pkgname = libdrm-amdgpu-pro-amdgpu1
+ pkgdesc = Userspace interface to amdgpu-specific kernel DRM services -- runtime
+ arch = x86_64
+ depends = libdrm2-amdgpu-pro
+
+pkgname = lib32-libdrm-amdgpu-pro-amdgpu1
+ pkgdesc = Userspace interface to amdgpu-specific kernel DRM services -- runtime
+ arch = x86_64
+ depends = lib32-libdrm2-amdgpu-pro
+
+pkgname = libdrm-amdgpu-pro-dev
+ pkgdesc = Userspace interface to kernel DRM services -- development files
+ arch = x86_64
+ depends = libdrm2-amdgpu-pro=16.15.2-277429
+ depends = libdrm-amdgpu-pro-amdgpu1=16.15.2-277429
+
+pkgname = lib32-libdrm-amdgpu-pro-dev
+ pkgdesc = Userspace interface to kernel DRM services -- development files
+ arch = x86_64
+ depends = lib32-libdrm2-amdgpu-pro=16.15.2-277429
+ depends = lib32-libdrm-amdgpu-pro-amdgpu1=16.15.2-277429
+
+pkgname = libdrm-amdgpu-pro-tools
+ pkgdesc = testing tools for libdrm-amdgpu-pro
+ arch = x86_64
+ depends = cunit
+ depends = libdrm-amdgpu-pro-amdgpu1
+ depends = libdrm2-amdgpu-pro
+
+pkgname = libdrm2-amdgpu-pro
+ pkgdesc = Userspace interface to kernel DRM services -- runtime
+ arch = x86_64
+ depends =
+
+pkgname = lib32-libdrm2-amdgpu-pro
+ pkgdesc = Userspace interface to kernel DRM services -- runtime
+ arch = x86_64
+ depends =
+
+pkgname = lib32-libegl1-amdgpu-pro
+ pkgdesc = implementation of the EGL API -- runtime
+ arch = x86_64
+ depends =
+
+pkgname = libegl1-amdgpu-pro
+ pkgdesc = implementation of the EGL API -- runtime
+ arch = x86_64
+ depends =
+
+pkgname = lib32-libegl1-amdgpu-pro-dev
+ pkgdesc = implementation of the EGL API -- development files
+ arch = x86_64
+ depends = lib32-libegl1-amdgpu-pro
+
+pkgname = libegl1-amdgpu-pro-dev
+ pkgdesc = implementation of the EGL API -- development files
+ arch = x86_64
+ depends = libegl1-amdgpu-pro
+
+pkgname = lib32-libgbm-amdgpu-pro-dev
+ pkgdesc = generic buffer management API -- development files
+ arch = x86_64
+ depends = lib32-libgbm1-amdgpu-pro
+
+pkgname = libgbm-amdgpu-pro-dev
+ pkgdesc = generic buffer management API -- development files
+ arch = x86_64
+ depends = libgbm1-amdgpu-pro
+
+pkgname = libgbm1-amdgpu-pro
+ pkgdesc = generic buffer management API -- runtime
+ arch = x86_64
+ depends = libdrm-amdgpu-pro-amdgpu1
+
+pkgname = lib32-libgbm1-amdgpu-pro
+ pkgdesc = generic buffer management API -- runtime
+ arch = x86_64
+ depends = lib32-libdrm-amdgpu-pro-amdgpu1
+
+pkgname = libgl1-amdgpu-pro-dev
+ pkgdesc = implementation of the OpenGL API -- GLX development files
+ arch = x86_64
+ depends = libgl1-amdgpu-pro-glx=16.15.2-277429
+
+pkgname = lib32-libgl1-amdgpu-pro-dev
+ pkgdesc = implementation of the OpenGL API -- GLX development files
+ arch = x86_64
+ depends = lib32-libgl1-amdgpu-pro-glx=16.15.2-277429
+
+pkgname = libgl1-amdgpu-pro-dri
+ pkgdesc = implementation of the OpenGL API -- DRI modules
+ arch = x86_64
+ depends = libx11
+ depends = libxext
+
+pkgname = lib32-libgl1-amdgpu-pro-dri
+ pkgdesc = implementation of the OpenGL API -- DRI modules
+ arch = x86_64
+ depends = lib32-libx11
+ depends = lib32-libxext
+
+pkgname = libgl1-amdgpu-pro-glx
+ pkgdesc = implementation of the OpenGL API -- GLX runtime
+ arch = x86_64
+ depends = libdrm2-amdgpu-pro
+ depends = libx11>=1.4.99.1
+ depends = libxcb>=1.8
+ depends = libxcb
+ depends = libxdamage>=1.1
+ depends = libxext
+ depends = libxfixes
+ depends = libxxf86vm
+
+pkgname = lib32-libgl1-amdgpu-pro-glx
+ pkgdesc = implementation of the OpenGL API -- GLX runtime
+ arch = x86_64
+ depends = lib32-libdrm2-amdgpu-pro
+ depends = lib32-libx11>=1.4.99.1
+ depends = lib32-libxcb>=1.8
+ depends = lib32-libxcb
+ depends = lib32-libxdamage>=1.1
+ depends = lib32-libxext
+ depends = lib32-libxfixes
+ depends = lib32-libxxf86vm
+
+pkgname = lib32-libgles2-amdgpu-pro
+ pkgdesc = implementation of the OpenGL|ES 2.x API -- runtime
+ arch = x86_64
+ depends = lib32-libegl1-amdgpu-pro=16.15.2-277429
+
+pkgname = libgles2-amdgpu-pro
+ pkgdesc = implementation of the OpenGL|ES 2.x API -- runtime
+ arch = x86_64
+ depends = libegl1-amdgpu-pro=16.15.2-277429
+
+pkgname = libgles2-amdgpu-pro-dev
+ pkgdesc = implementation of the OpenGL|ES 2.x API -- development files
+ arch = x86_64
+ depends = libgles2-amdgpu-pro
+
+pkgname = lib32-libgles2-amdgpu-pro-dev
+ pkgdesc = implementation of the OpenGL|ES 2.x API -- development files
+ arch = x86_64
+ depends = lib32-libgles2-amdgpu-pro
+
+pkgname = libvdpau-amdgpu-pro
+ pkgdesc = AMDGPU Pro VDPAU driver
+ arch = x86_64
+ depends = libdrm-amdgpu-pro-amdgpu1
+ depends = libdrm>=2.4.31
+ depends = libdrm2-amdgpu-pro
+ depends = libelf>=0.142
+ depends = libx11
+ depends = libxcb>=1.8
+ depends = libxcb
+
+pkgname = xserver-xorg-video-amdgpu-pro
+ pkgdesc = X.Org X server -- AMD/ATI Amdgpu-Pro display driver
+ arch = x86_64
+ depends = libdrm-amdgpu-pro-amdgpu1
+ depends = libdrm2-amdgpu-pro
+ depends = libepoxy>=1.0
+ depends = libgbm1-amdgpu-pro
+ depends = libgl1-amdgpu-pro-glx
+ depends = libpciaccess
+ depends = libsystemd>=183
+ depends = libx11
+ depends = libxcb
+ depends = libxdamage>=1.1
+ depends = libxext
+ depends = libxfixes
+ depends = libxxf86vm
+ depends = xorg-server
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..cc85376b511
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+*.tar.xz
+pkg
+src
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8b7b87c5c01
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,580 @@
+# Maintainer: Janusz Lewandowski <lew21@xtreeme.org>
+# Autogenerated from AMD's Packages file
+# with https://github.com/LEW21/archlinux-amdgpu/blob/master/gen-PKGBUILD.py
+
+pkgbase=amdgpu-pro-installer
+pkgname=(amdgpu-pro amdgpu-pro-clinfo amdgpu-pro-computing amdgpu-pro-core amdgpu-pro-dkms amdgpu-pro-firmware amdgpu-pro-graphics lib32-amdgpu-pro-lib32 lib32-amdgpu-pro-libopencl-dev amdgpu-pro-libopencl-dev lib32-amdgpu-pro-libopencl1 amdgpu-pro-libopencl1 amdgpu-pro-opencl-icd lib32-amdgpu-pro-opencl-icd lib32-amdgpu-pro-vulkan-driver amdgpu-pro-vulkan-driver libdrm-amdgpu-pro-amdgpu1 lib32-libdrm-amdgpu-pro-amdgpu1 libdrm-amdgpu-pro-dev lib32-libdrm-amdgpu-pro-dev libdrm-amdgpu-pro-tools libdrm2-amdgpu-pro lib32-libdrm2-amdgpu-pro lib32-libegl1-amdgpu-pro libegl1-amdgpu-pro lib32-libegl1-amdgpu-pro-dev libegl1-amdgpu-pro-dev lib32-libgbm-amdgpu-pro-dev libgbm-amdgpu-pro-dev libgbm1-amdgpu-pro lib32-libgbm1-amdgpu-pro libgl1-amdgpu-pro-dev lib32-libgl1-amdgpu-pro-dev libgl1-amdgpu-pro-dri lib32-libgl1-amdgpu-pro-dri libgl1-amdgpu-pro-glx lib32-libgl1-amdgpu-pro-glx lib32-libgles2-amdgpu-pro libgles2-amdgpu-pro libgles2-amdgpu-pro-dev lib32-libgles2-amdgpu-pro-dev libvdpau-amdgpu-pro xserver-xorg-video-amdgpu-pro)
+pkgver=16.15.2
+pkgrel=277429
+arch=('x86_64')
+url="http://www.amd.com"
+
+url_ref="http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Beta-Driver-for-Vulkan-Release-Notes.aspx"
+DLAGENTS="https::/usr/bin/curl --referer ${url_ref} -o %o %u"
+
+source=(https://www2.ati.com/drivers/beta/amdgpu-pro_${pkgver}-277429.tar.xz)
+sha256sums=('e857cc74959706c276328b5876dfeba7d1ec0cbfacf966b607c50a748f7f5233')
+
+
+package_amdgpu-pro () {
+ pkgdesc="This package install all amdgpu-pro components."
+ depends=('amdgpu-pro-graphics=16.15.2-277429' 'amdgpu-pro-computing=16.15.2-277429')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/amdgpu-pro_16.15.2-277429_amd64
+ mkdir "${srcdir}"/amdgpu-pro_16.15.2-277429_amd64
+ cd "${srcdir}"/amdgpu-pro_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_amdgpu-pro-clinfo () {
+ pkgdesc="AMD OpenCL info utility"
+ depends=('amdgpu-pro-libopencl1')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/amdgpu-pro-clinfo_16.15.2-277429_amd64
+ mkdir "${srcdir}"/amdgpu-pro-clinfo_16.15.2-277429_amd64
+ cd "${srcdir}"/amdgpu-pro-clinfo_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-clinfo_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_amdgpu-pro-computing () {
+ pkgdesc="This package install amdgpu-pro OpenCL components."
+ depends=('amdgpu-pro-core=16.15.2-277429' 'amdgpu-pro-clinfo=16.15.2-277429' 'amdgpu-pro-opencl-icd=16.15.2-277429' 'amdgpu-pro-libopencl-dev=16.15.2-277429')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/amdgpu-pro-computing_16.15.2-277429_amd64
+ mkdir "${srcdir}"/amdgpu-pro-computing_16.15.2-277429_amd64
+ cd "${srcdir}"/amdgpu-pro-computing_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-computing_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_amdgpu-pro-core () {
+ pkgdesc="This package switchs the GPU stack to amdgpu-pro with basic components."
+ depends=('amdgpu-pro-firmware=16.15.2-277429' 'libdrm-amdgpu-pro-amdgpu1=16.15.2-277429')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/amdgpu-pro-core_16.15.2-277429_amd64
+ mkdir "${srcdir}"/amdgpu-pro-core_16.15.2-277429_amd64
+ cd "${srcdir}"/amdgpu-pro-core_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-core_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+
+ mv ${pkgdir}/lib ${pkgdir}/usr/
+}
+
+
+package_amdgpu-pro-dkms () {
+ pkgdesc="amdgpu-pro driver in DKMS format."
+ depends=('dkms>=1.95')
+ arch=('any')
+
+ rm -Rf "${srcdir}"/amdgpu-pro-dkms_16.15.2-277429_all
+ mkdir "${srcdir}"/amdgpu-pro-dkms_16.15.2-277429_all
+ cd "${srcdir}"/amdgpu-pro-dkms_16.15.2-277429_all
+ ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-dkms_16.15.2-277429_all.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_amdgpu-pro-firmware () {
+ pkgdesc="Firmware for amdgpu-pro cards."
+ depends=()
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/amdgpu-pro-firmware_16.15.2-277429_amd64
+ mkdir "${srcdir}"/amdgpu-pro-firmware_16.15.2-277429_amd64
+ cd "${srcdir}"/amdgpu-pro-firmware_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-firmware_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+
+ mv ${pkgdir}/lib ${pkgdir}/usr/
+}
+
+
+package_amdgpu-pro-graphics () {
+ pkgdesc="This package install amdgpu-pro graphics components."
+ depends=('amdgpu-pro-core=16.15.2-277429' 'libgles2-amdgpu-pro=16.15.2-277429' 'libgl1-amdgpu-pro-dev=16.15.2-277429' 'libgl1-amdgpu-pro-dri=16.15.2-277429' 'xserver-xorg-video-amdgpu-pro=16.15.2-277429' 'amdgpu-pro-vulkan-driver=16.15.2-277429' 'libvdpau-amdgpu-pro=16.15.2-277429')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/amdgpu-pro-graphics_16.15.2-277429_amd64
+ mkdir "${srcdir}"/amdgpu-pro-graphics_16.15.2-277429_amd64
+ cd "${srcdir}"/amdgpu-pro-graphics_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-graphics_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-amdgpu-pro-lib32 () {
+ pkgdesc="This package contains x86 libs for x86_64 machine usage."
+ depends=('lib32-libgles2-amdgpu-pro=16.15.2-277429' 'lib32-libgl1-amdgpu-pro-dev=16.15.2-277429' 'lib32-libgl1-amdgpu-pro-dri=16.15.2-277429' 'lib32-libgbm1-amdgpu-pro=16.15.2-277429' 'lib32-amdgpu-pro-opencl-icd=16.15.2-277429' 'lib32-amdgpu-pro-libopencl-dev=16.15.2-277429' 'lib32-amdgpu-pro-vulkan-driver=16.15.2-277429')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/amdgpu-pro-lib32_16.15.2-277429_i386
+ mkdir "${srcdir}"/amdgpu-pro-lib32_16.15.2-277429_i386
+ cd "${srcdir}"/amdgpu-pro-lib32_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-lib32_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-amdgpu-pro-libopencl-dev () {
+ pkgdesc="AMD OpenCL ICD Loader library"
+ depends=('lib32-amdgpu-pro-libopencl1=16.15.2-277429')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/amdgpu-pro-libopencl-dev_16.15.2-277429_i386
+ mkdir "${srcdir}"/amdgpu-pro-libopencl-dev_16.15.2-277429_i386
+ cd "${srcdir}"/amdgpu-pro-libopencl-dev_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-libopencl-dev_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_amdgpu-pro-libopencl-dev () {
+ pkgdesc="AMD OpenCL ICD Loader library"
+ depends=('amdgpu-pro-libopencl1=16.15.2-277429')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/amdgpu-pro-libopencl-dev_16.15.2-277429_amd64
+ mkdir "${srcdir}"/amdgpu-pro-libopencl-dev_16.15.2-277429_amd64
+ cd "${srcdir}"/amdgpu-pro-libopencl-dev_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-libopencl-dev_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-amdgpu-pro-libopencl1 () {
+ pkgdesc="AMD OpenCL ICD Loader library"
+ depends=()
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/amdgpu-pro-libopencl1_16.15.2-277429_i386
+ mkdir "${srcdir}"/amdgpu-pro-libopencl1_16.15.2-277429_i386
+ cd "${srcdir}"/amdgpu-pro-libopencl1_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-libopencl1_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_amdgpu-pro-libopencl1 () {
+ pkgdesc="AMD OpenCL ICD Loader library"
+ depends=()
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/amdgpu-pro-libopencl1_16.15.2-277429_amd64
+ mkdir "${srcdir}"/amdgpu-pro-libopencl1_16.15.2-277429_amd64
+ cd "${srcdir}"/amdgpu-pro-libopencl1_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-libopencl1_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_amdgpu-pro-opencl-icd () {
+ pkgdesc="non-free AMD OpenCL ICD Loaders"
+ depends=()
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/amdgpu-pro-opencl-icd_16.15.2-277429_amd64
+ mkdir "${srcdir}"/amdgpu-pro-opencl-icd_16.15.2-277429_amd64
+ cd "${srcdir}"/amdgpu-pro-opencl-icd_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-opencl-icd_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-amdgpu-pro-opencl-icd () {
+ pkgdesc="non-free AMD OpenCL ICD Loaders"
+ depends=()
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/amdgpu-pro-opencl-icd_16.15.2-277429_i386
+ mkdir "${srcdir}"/amdgpu-pro-opencl-icd_16.15.2-277429_i386
+ cd "${srcdir}"/amdgpu-pro-opencl-icd_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-opencl-icd_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-amdgpu-pro-vulkan-driver () {
+ pkgdesc="AMDGPU Pro Vulkan driver"
+ depends=('lib32-libdrm-amdgpu-pro-amdgpu1' 'lib32-libx11' 'lib32-libxcb' 'lib32-libxcb>=1.9.2' 'lib32-libxext' 'lib32-libxshmfence')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/amdgpu-pro-vulkan-driver_16.15.2-277429_i386
+ mkdir "${srcdir}"/amdgpu-pro-vulkan-driver_16.15.2-277429_i386
+ cd "${srcdir}"/amdgpu-pro-vulkan-driver_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-vulkan-driver_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_amdgpu-pro-vulkan-driver () {
+ pkgdesc="AMDGPU Pro Vulkan driver"
+ depends=('libdrm-amdgpu-pro-amdgpu1' 'libx11' 'libxcb' 'libxcb>=1.9.2' 'libxext' 'libxshmfence')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/amdgpu-pro-vulkan-driver_16.15.2-277429_amd64
+ mkdir "${srcdir}"/amdgpu-pro-vulkan-driver_16.15.2-277429_amd64
+ cd "${srcdir}"/amdgpu-pro-vulkan-driver_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-vulkan-driver_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_libdrm-amdgpu-pro-amdgpu1 () {
+ pkgdesc="Userspace interface to amdgpu-specific kernel DRM services -- runtime"
+ depends=('libdrm2-amdgpu-pro')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libdrm-amdgpu-pro-amdgpu1_16.15.2-277429_amd64
+ mkdir "${srcdir}"/libdrm-amdgpu-pro-amdgpu1_16.15.2-277429_amd64
+ cd "${srcdir}"/libdrm-amdgpu-pro-amdgpu1_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./libdrm-amdgpu-pro-amdgpu1_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-libdrm-amdgpu-pro-amdgpu1 () {
+ pkgdesc="Userspace interface to amdgpu-specific kernel DRM services -- runtime"
+ depends=('lib32-libdrm2-amdgpu-pro')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libdrm-amdgpu-pro-amdgpu1_16.15.2-277429_i386
+ mkdir "${srcdir}"/libdrm-amdgpu-pro-amdgpu1_16.15.2-277429_i386
+ cd "${srcdir}"/libdrm-amdgpu-pro-amdgpu1_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./libdrm-amdgpu-pro-amdgpu1_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_libdrm-amdgpu-pro-dev () {
+ pkgdesc="Userspace interface to kernel DRM services -- development files"
+ depends=('libdrm2-amdgpu-pro=16.15.2-277429' 'libdrm-amdgpu-pro-amdgpu1=16.15.2-277429')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libdrm-amdgpu-pro-dev_16.15.2-277429_amd64
+ mkdir "${srcdir}"/libdrm-amdgpu-pro-dev_16.15.2-277429_amd64
+ cd "${srcdir}"/libdrm-amdgpu-pro-dev_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./libdrm-amdgpu-pro-dev_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-libdrm-amdgpu-pro-dev () {
+ pkgdesc="Userspace interface to kernel DRM services -- development files"
+ depends=('lib32-libdrm2-amdgpu-pro=16.15.2-277429' 'lib32-libdrm-amdgpu-pro-amdgpu1=16.15.2-277429')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libdrm-amdgpu-pro-dev_16.15.2-277429_i386
+ mkdir "${srcdir}"/libdrm-amdgpu-pro-dev_16.15.2-277429_i386
+ cd "${srcdir}"/libdrm-amdgpu-pro-dev_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./libdrm-amdgpu-pro-dev_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_libdrm-amdgpu-pro-tools () {
+ pkgdesc="testing tools for libdrm-amdgpu-pro"
+ depends=('cunit' 'libdrm-amdgpu-pro-amdgpu1' 'libdrm2-amdgpu-pro')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libdrm-amdgpu-pro-tools_16.15.2-277429_amd64
+ mkdir "${srcdir}"/libdrm-amdgpu-pro-tools_16.15.2-277429_amd64
+ cd "${srcdir}"/libdrm-amdgpu-pro-tools_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./libdrm-amdgpu-pro-tools_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_libdrm2-amdgpu-pro () {
+ pkgdesc="Userspace interface to kernel DRM services -- runtime"
+ depends=()
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libdrm2-amdgpu-pro_16.15.2-277429_amd64
+ mkdir "${srcdir}"/libdrm2-amdgpu-pro_16.15.2-277429_amd64
+ cd "${srcdir}"/libdrm2-amdgpu-pro_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./libdrm2-amdgpu-pro_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-libdrm2-amdgpu-pro () {
+ pkgdesc="Userspace interface to kernel DRM services -- runtime"
+ depends=()
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libdrm2-amdgpu-pro_16.15.2-277429_i386
+ mkdir "${srcdir}"/libdrm2-amdgpu-pro_16.15.2-277429_i386
+ cd "${srcdir}"/libdrm2-amdgpu-pro_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./libdrm2-amdgpu-pro_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-libegl1-amdgpu-pro () {
+ pkgdesc="implementation of the EGL API -- runtime"
+ depends=()
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libegl1-amdgpu-pro_16.15.2-277429_i386
+ mkdir "${srcdir}"/libegl1-amdgpu-pro_16.15.2-277429_i386
+ cd "${srcdir}"/libegl1-amdgpu-pro_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./libegl1-amdgpu-pro_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_libegl1-amdgpu-pro () {
+ pkgdesc="implementation of the EGL API -- runtime"
+ depends=()
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libegl1-amdgpu-pro_16.15.2-277429_amd64
+ mkdir "${srcdir}"/libegl1-amdgpu-pro_16.15.2-277429_amd64
+ cd "${srcdir}"/libegl1-amdgpu-pro_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./libegl1-amdgpu-pro_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-libegl1-amdgpu-pro-dev () {
+ pkgdesc="implementation of the EGL API -- development files"
+ depends=('lib32-libegl1-amdgpu-pro')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libegl1-amdgpu-pro-dev_16.15.2-277429_i386
+ mkdir "${srcdir}"/libegl1-amdgpu-pro-dev_16.15.2-277429_i386
+ cd "${srcdir}"/libegl1-amdgpu-pro-dev_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./libegl1-amdgpu-pro-dev_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_libegl1-amdgpu-pro-dev () {
+ pkgdesc="implementation of the EGL API -- development files"
+ depends=('libegl1-amdgpu-pro')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libegl1-amdgpu-pro-dev_16.15.2-277429_amd64
+ mkdir "${srcdir}"/libegl1-amdgpu-pro-dev_16.15.2-277429_amd64
+ cd "${srcdir}"/libegl1-amdgpu-pro-dev_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./libegl1-amdgpu-pro-dev_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-libgbm-amdgpu-pro-dev () {
+ pkgdesc="generic buffer management API -- development files"
+ depends=('lib32-libgbm1-amdgpu-pro')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libgbm-amdgpu-pro-dev_16.15.2-277429_i386
+ mkdir "${srcdir}"/libgbm-amdgpu-pro-dev_16.15.2-277429_i386
+ cd "${srcdir}"/libgbm-amdgpu-pro-dev_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./libgbm-amdgpu-pro-dev_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_libgbm-amdgpu-pro-dev () {
+ pkgdesc="generic buffer management API -- development files"
+ depends=('libgbm1-amdgpu-pro')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libgbm-amdgpu-pro-dev_16.15.2-277429_amd64
+ mkdir "${srcdir}"/libgbm-amdgpu-pro-dev_16.15.2-277429_amd64
+ cd "${srcdir}"/libgbm-amdgpu-pro-dev_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./libgbm-amdgpu-pro-dev_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_libgbm1-amdgpu-pro () {
+ pkgdesc="generic buffer management API -- runtime"
+ depends=('libdrm-amdgpu-pro-amdgpu1')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libgbm1-amdgpu-pro_16.15.2-277429_amd64
+ mkdir "${srcdir}"/libgbm1-amdgpu-pro_16.15.2-277429_amd64
+ cd "${srcdir}"/libgbm1-amdgpu-pro_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./libgbm1-amdgpu-pro_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-libgbm1-amdgpu-pro () {
+ pkgdesc="generic buffer management API -- runtime"
+ depends=('lib32-libdrm-amdgpu-pro-amdgpu1')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libgbm1-amdgpu-pro_16.15.2-277429_i386
+ mkdir "${srcdir}"/libgbm1-amdgpu-pro_16.15.2-277429_i386
+ cd "${srcdir}"/libgbm1-amdgpu-pro_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./libgbm1-amdgpu-pro_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_libgl1-amdgpu-pro-dev () {
+ pkgdesc="implementation of the OpenGL API -- GLX development files"
+ depends=('libgl1-amdgpu-pro-glx=16.15.2-277429')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libgl1-amdgpu-pro-dev_16.15.2-277429_amd64
+ mkdir "${srcdir}"/libgl1-amdgpu-pro-dev_16.15.2-277429_amd64
+ cd "${srcdir}"/libgl1-amdgpu-pro-dev_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./libgl1-amdgpu-pro-dev_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-libgl1-amdgpu-pro-dev () {
+ pkgdesc="implementation of the OpenGL API -- GLX development files"
+ depends=('lib32-libgl1-amdgpu-pro-glx=16.15.2-277429')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libgl1-amdgpu-pro-dev_16.15.2-277429_i386
+ mkdir "${srcdir}"/libgl1-amdgpu-pro-dev_16.15.2-277429_i386
+ cd "${srcdir}"/libgl1-amdgpu-pro-dev_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./libgl1-amdgpu-pro-dev_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_libgl1-amdgpu-pro-dri () {
+ pkgdesc="implementation of the OpenGL API -- DRI modules"
+ depends=('libx11' 'libxext')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libgl1-amdgpu-pro-dri_16.15.2-277429_amd64
+ mkdir "${srcdir}"/libgl1-amdgpu-pro-dri_16.15.2-277429_amd64
+ cd "${srcdir}"/libgl1-amdgpu-pro-dri_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./libgl1-amdgpu-pro-dri_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-libgl1-amdgpu-pro-dri () {
+ pkgdesc="implementation of the OpenGL API -- DRI modules"
+ depends=('lib32-libx11' 'lib32-libxext')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libgl1-amdgpu-pro-dri_16.15.2-277429_i386
+ mkdir "${srcdir}"/libgl1-amdgpu-pro-dri_16.15.2-277429_i386
+ cd "${srcdir}"/libgl1-amdgpu-pro-dri_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./libgl1-amdgpu-pro-dri_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_libgl1-amdgpu-pro-glx () {
+ pkgdesc="implementation of the OpenGL API -- GLX runtime"
+ depends=('libdrm2-amdgpu-pro' 'libx11>=1.4.99.1' 'libxcb>=1.8' 'libxcb' 'libxdamage>=1.1' 'libxext' 'libxfixes' 'libxxf86vm')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libgl1-amdgpu-pro-glx_16.15.2-277429_amd64
+ mkdir "${srcdir}"/libgl1-amdgpu-pro-glx_16.15.2-277429_amd64
+ cd "${srcdir}"/libgl1-amdgpu-pro-glx_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./libgl1-amdgpu-pro-glx_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-libgl1-amdgpu-pro-glx () {
+ pkgdesc="implementation of the OpenGL API -- GLX runtime"
+ depends=('lib32-libdrm2-amdgpu-pro' 'lib32-libx11>=1.4.99.1' 'lib32-libxcb>=1.8' 'lib32-libxcb' 'lib32-libxdamage>=1.1' 'lib32-libxext' 'lib32-libxfixes' 'lib32-libxxf86vm')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libgl1-amdgpu-pro-glx_16.15.2-277429_i386
+ mkdir "${srcdir}"/libgl1-amdgpu-pro-glx_16.15.2-277429_i386
+ cd "${srcdir}"/libgl1-amdgpu-pro-glx_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./libgl1-amdgpu-pro-glx_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-libgles2-amdgpu-pro () {
+ pkgdesc="implementation of the OpenGL|ES 2.x API -- runtime"
+ depends=('lib32-libegl1-amdgpu-pro=16.15.2-277429')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libgles2-amdgpu-pro_16.15.2-277429_i386
+ mkdir "${srcdir}"/libgles2-amdgpu-pro_16.15.2-277429_i386
+ cd "${srcdir}"/libgles2-amdgpu-pro_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./libgles2-amdgpu-pro_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_libgles2-amdgpu-pro () {
+ pkgdesc="implementation of the OpenGL|ES 2.x API -- runtime"
+ depends=('libegl1-amdgpu-pro=16.15.2-277429')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libgles2-amdgpu-pro_16.15.2-277429_amd64
+ mkdir "${srcdir}"/libgles2-amdgpu-pro_16.15.2-277429_amd64
+ cd "${srcdir}"/libgles2-amdgpu-pro_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./libgles2-amdgpu-pro_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_libgles2-amdgpu-pro-dev () {
+ pkgdesc="implementation of the OpenGL|ES 2.x API -- development files"
+ depends=('libgles2-amdgpu-pro')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libgles2-amdgpu-pro-dev_16.15.2-277429_amd64
+ mkdir "${srcdir}"/libgles2-amdgpu-pro-dev_16.15.2-277429_amd64
+ cd "${srcdir}"/libgles2-amdgpu-pro-dev_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./libgles2-amdgpu-pro-dev_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_lib32-libgles2-amdgpu-pro-dev () {
+ pkgdesc="implementation of the OpenGL|ES 2.x API -- development files"
+ depends=('lib32-libgles2-amdgpu-pro')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libgles2-amdgpu-pro-dev_16.15.2-277429_i386
+ mkdir "${srcdir}"/libgles2-amdgpu-pro-dev_16.15.2-277429_i386
+ cd "${srcdir}"/libgles2-amdgpu-pro-dev_16.15.2-277429_i386
+ ar x "${srcdir}"/amdgpu-pro-driver/./libgles2-amdgpu-pro-dev_16.15.2-277429_i386.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_libvdpau-amdgpu-pro () {
+ pkgdesc="AMDGPU Pro VDPAU driver"
+ depends=('libdrm-amdgpu-pro-amdgpu1' 'libdrm>=2.4.31' 'libdrm2-amdgpu-pro' 'libelf>=0.142' 'libx11' 'libxcb>=1.8' 'libxcb')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/libvdpau-amdgpu-pro_16.15.2-277429_amd64
+ mkdir "${srcdir}"/libvdpau-amdgpu-pro_16.15.2-277429_amd64
+ cd "${srcdir}"/libvdpau-amdgpu-pro_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./libvdpau-amdgpu-pro_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
+
+package_xserver-xorg-video-amdgpu-pro () {
+ pkgdesc="X.Org X server -- AMD/ATI Amdgpu-Pro display driver"
+ depends=('libdrm-amdgpu-pro-amdgpu1' 'libdrm2-amdgpu-pro' 'libepoxy>=1.0' 'libgbm1-amdgpu-pro' 'libgl1-amdgpu-pro-glx' 'libpciaccess' 'libsystemd>=183' 'libx11' 'libxcb' 'libxdamage>=1.1' 'libxext' 'libxfixes' 'libxxf86vm' 'xorg-server')
+ arch=('x86_64')
+
+ rm -Rf "${srcdir}"/xserver-xorg-video-amdgpu-pro_16.15.2-277429_amd64
+ mkdir "${srcdir}"/xserver-xorg-video-amdgpu-pro_16.15.2-277429_amd64
+ cd "${srcdir}"/xserver-xorg-video-amdgpu-pro_16.15.2-277429_amd64
+ ar x "${srcdir}"/amdgpu-pro-driver/./xserver-xorg-video-amdgpu-pro_16.15.2-277429_amd64.deb
+ tar -C "${pkgdir}" -xf data.tar.xz
+}
+
diff --git a/gen-PKGBUILD.py b/gen-PKGBUILD.py
new file mode 100644
index 00000000000..03eaba8dbdd
--- /dev/null
+++ b/gen-PKGBUILD.py
@@ -0,0 +1,168 @@
+from debian import deb822
+import re
+import gzip
+
+header_tpl = """# Maintainer: Janusz Lewandowski <lew21@xtreeme.org>
+# Autogenerated from AMD's Packages file
+# with https://github.com/LEW21/archlinux-amdgpu/blob/master/gen-PKGBUILD.py
+
+pkgbase=amdgpu-pro-installer
+pkgname={PACKAGES}
+pkgver=16.15.2
+pkgrel=277429
+arch=('x86_64')
+url="http://www.amd.com"
+
+url_ref="http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Beta-Driver-for-Vulkan-Release-Notes.aspx"
+DLAGENTS="https::/usr/bin/curl --referer ${{url_ref}} -o %o %u"
+
+source=(https://www2.ati.com/drivers/beta/amdgpu-pro_${{pkgver}}-277429.tar.xz)
+sha256sums=('e857cc74959706c276328b5876dfeba7d1ec0cbfacf966b607c50a748f7f5233')
+"""
+
+package_header_tpl = """
+package_{NAME} () {{
+ pkgdesc={DESC}
+ depends={DEPENDS}
+ arch=('{ARCH}')
+
+ rm -Rf "${{srcdir}}"/{Package}_{Version}_{Architecture}
+ mkdir "${{srcdir}}"/{Package}_{Version}_{Architecture}
+ cd "${{srcdir}}"/{Package}_{Version}_{Architecture}
+ ar x "${{srcdir}}"/amdgpu-pro-driver/{Filename}
+ tar -C "${{pkgdir}}" -xf data.tar.xz
+"""
+
+package_footer = """}
+"""
+
+special_ops = {
+ "amdgpu-pro-firmware": "mv ${pkgdir}/lib ${pkgdir}/usr/",
+ "amdgpu-pro-core": "mv ${pkgdir}/lib ${pkgdir}/usr/",
+}
+
+replace_deps = {
+ "libc6": None,
+ "libgcc1": None,
+ "libstdc++6": None,
+ "libx11-6": "libx11",
+ "libx11-xcb1": None,
+ "libxcb-dri2-0": "libxcb",
+ "libxcb-dri3-0": "libxcb",
+ "libxcb-present0": "libxcb",
+ "libxcb-sync1": "libxcb",
+ "libxcb-glx0": "libxcb",
+ "libxcb1": "libxcb",
+ "libxext6": "libxext",
+ "libxshmfence1": "libxshmfence",
+ "libxdamage1": "libxdamage",
+ "libxfixes3": "libxfixes",
+ "libxxf86vm1": "libxxf86vm",
+ "libudev1": "libsystemd",
+ "libpciaccess0": "libpciaccess",
+ "libepoxy0": "libepoxy",
+ "libelf1": "libelf",
+ "xserver-xorg-core": "xorg-server",
+ "libcunit1": "cunit",
+ "libdrm-radeon1": "libdrm",
+}
+
+dependency = re.compile(r"([^ ]+)(?: \((.+)\))?")
+
+arch_map = {
+ "amd64": "x86_64",
+ "i386": "i686",
+ "all": "any"
+}
+
+deb_archs={}
+
+def archPackageName(info):
+ lib32 = "lib32-" if info["Architecture"] == "i386" else ""
+ return lib32 + info["Package"]
+
+def quote(string):
+ return "\"" + string.replace("\\", "\\\\").replace("\"", "\\\"") + "\""
+
+def convertName(name):
+ if info["Architecture"] == "i386" and (name not in deb_archs or "any" not in deb_archs[name]):
+ return "lib32-" + name
+ return name
+
+def convertVersionSpecifier(spec):
+ if not spec:
+ return ""
+
+ sign, spec = spec.split(" ", 1)
+
+ spec = spec.strip()
+ if ":" in spec:
+ whatever, spec = spec.rsplit(":", 1)
+ return sign + spec
+
+def convertPackage(info):
+ if info["Architecture"] == "i386":
+ name = "lib32-" + info["Package"]
+ arch = "x86_64"
+ else:
+ name = info["Package"]
+ arch = arch_map[info["Architecture"]]
+
+ try:
+ deps = info["Depends"].split(", ")
+ except:
+ deps = []
+
+ deps = [dependency.match(dep).groups() for dep in deps]
+ deps = [(replace_deps[name] if name in replace_deps else name, version) for name, version in deps]
+ deps = ["'" + convertName(name) + convertVersionSpecifier(version) + "'" for name, version in deps if name]
+ deps2 = []
+ for dep in deps:
+ if not dep in deps2:
+ deps2.append(dep)
+ deps = "(" + " ".join(deps2) + ")"
+
+ special_op = special_ops[info["Package"]] if info["Package"] in special_ops else ""
+
+ desc = info["Description"].split("\n")
+ if len(desc) > 2:
+ desc = desc[0]
+ else:
+ desc = " ".join(x.strip() for x in desc)
+
+ ret = package_header_tpl.format(DEPENDS=deps, NAME=name, ARCH=arch, SPECIAL_OPS=special_op, DESC=quote(desc), **info)
+ if special_op:
+ ret += "\n\t" + special_op + "\n"
+ ret += package_footer
+
+ return ret
+
+with gzip.open("src/amdgpu-pro-driver/Packages.gz", "r") as f:
+ package_list=[]
+
+ for info in deb822.Packages.iter_paragraphs(f):
+ if info["Filename"].startswith("./dkms/dst/amdgpu-pro/"):
+ continue
+
+ if not info["Package"] in deb_archs:
+ deb_archs[info["Package"]] = set()
+
+ deb_archs[info["Package"]].add(info["Architecture"])
+
+ if info["Architecture"] == "i386":
+ name = "lib32-" + info["Package"]
+ else:
+ name = info["Package"]
+
+ package_list.append(name)
+
+ print(header_tpl.format(PACKAGES="(" + " ".join(package_list) + ")"))
+
+ f.seek(0)
+
+ for info in deb822.Packages.iter_paragraphs(f):
+ if info["Filename"].startswith("./dkms/dst/amdgpu-pro/"):
+ continue
+
+ print(convertPackage(info))
+