Date: Thursday, May 28, 2020 @ 17:02:21 Author: lcarlier Revision: 636493
archrelease: copy trunk to multilib-x86_64 Added: lib32-amdvlk/repos/multilib-x86_64/PKGBUILD (from rev 636492, lib32-amdvlk/trunk/PKGBUILD) Deleted: lib32-amdvlk/repos/multilib-x86_64/PKGBUILD ----------+ PKGBUILD | 126 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 63 insertions(+), 63 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-05-28 17:02:15 UTC (rev 636492) +++ PKGBUILD 2020-05-28 17:02:21 UTC (rev 636493) @@ -1,63 +0,0 @@ -# Maintainer: Laurent Carlier <lordhea...@gmail.com> -# Contributor: lod <a...@cyber-anlage.de> - -pkgname=lib32-amdvlk -pkgver=2020.Q2.3 -pkgrel=1 -pkgdesc="AMD's standalone Vulkan driver" -arch=(x86_64) -url="https://github.com/GPUOpen-Drivers" -license=('MIT') -provides=('lib32-vulkan-driver') -makedepends=('perl-xml-xpath' 'python' 'lib32-wayland' 'lib32-libxrandr' 'xorg-server-devel' 'cmake' 'ninja' 'git') -source=("https://github.com/GPUOpen-Drivers/AMDVLK/archive/v-${pkgver}.tar.gz") -sha256sums=('3c0bf95b11bb38fbc8aa3cf620c07117473ca8f99e0c1534db4fa5ae03b8a9ac') - -prepare() { - local nrepos path name revision - - nrepos=$(xpath -q -e //project AMDVLK-v-${pkgver}/default.xml | wc -l) - - while (($nrepos>0)) - do - path=$(xpath -q -e //project[$nrepos]/@path AMDVLK-v-${pkgver}/default.xml | sed 's/ path="drivers\/\(.*\)"/\1/g') - name=$(xpath -q -e //project[$nrepos]/@name AMDVLK-v-${pkgver}/default.xml | sed 's/ name="\(.*\)"/\1/g') - revision=$(xpath -q -e //project[$nrepos]/@revision AMDVLK-v-${pkgver}/default.xml | sed 's/ revision="\(.*\)"/\1/g') - git clone https://github.com/GPUOpen-Drivers/$name $path - pushd $path - git checkout $revision - popd - (( nrepos-- )) - done - - # fix build with gcc9 - sed -i "s/-Werror//g" ${srcdir}/pal/shared/gpuopen/cmake/AMD.cmake -} - -build() { - export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" - - cd ${srcdir}/xgl - cmake -H. -Bbuilds/Release \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_C_FLAGS=-m32 \ - -DCMAKE_CXX_FLAGS=-m32 \ - -DLLVM_TARGET_ARCH:STRING=i686 \ - -DLLVM_DEFAULT_TARGET_TRIPLE="i686-pc-linux-gnu" \ - -DBUILD_WAYLAND_SUPPORT=On \ - -G Ninja - - ninja -C builds/Release -} - -package() { - install -m755 -d "${pkgdir}"/usr/lib32 - install -m755 -d "${pkgdir}"/usr/share/vulkan/icd.d - install -m755 -d "${pkgdir}"/usr/share/licenses/${pkgname} - - install xgl/builds/Release/icd/amdvlk32.so "${pkgdir}"/usr/lib32/ - install AMDVLK/json/Redhat/amd_icd32.json "${pkgdir}"/usr/share/vulkan/icd.d/ - install AMDVLK/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/ - - sed -i "s/\/lib/\/lib32/g" "${pkgdir}"/usr/share/vulkan/icd.d/amd_icd32.json -} Copied: lib32-amdvlk/repos/multilib-x86_64/PKGBUILD (from rev 636492, lib32-amdvlk/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-05-28 17:02:21 UTC (rev 636493) @@ -0,0 +1,63 @@ +# Maintainer: Laurent Carlier <lordhea...@gmail.com> +# Contributor: lod <a...@cyber-anlage.de> + +pkgname=lib32-amdvlk +pkgver=2020.Q2.4 +pkgrel=1 +pkgdesc="AMD's standalone Vulkan driver" +arch=(x86_64) +url="https://github.com/GPUOpen-Drivers" +license=('MIT') +provides=('lib32-vulkan-driver') +makedepends=('perl-xml-xpath' 'python' 'lib32-wayland' 'lib32-libxrandr' 'xorg-server-devel' 'cmake' 'ninja' 'git') +source=("https://github.com/GPUOpen-Drivers/AMDVLK/archive/v-${pkgver}.tar.gz") +sha256sums=('3ca0b3e10233a22bbb9d703d1bde7d24a9046790eb6828140311ae837cc01e1b') + +prepare() { + local nrepos path name revision + + nrepos=$(xpath -q -e //project AMDVLK-v-${pkgver}/default.xml | wc -l) + + while (($nrepos>0)) + do + path=$(xpath -q -e //project[$nrepos]/@path AMDVLK-v-${pkgver}/default.xml | sed 's/ path="drivers\/\(.*\)"/\1/g') + name=$(xpath -q -e //project[$nrepos]/@name AMDVLK-v-${pkgver}/default.xml | sed 's/ name="\(.*\)"/\1/g') + revision=$(xpath -q -e //project[$nrepos]/@revision AMDVLK-v-${pkgver}/default.xml | sed 's/ revision="\(.*\)"/\1/g') + git clone https://github.com/GPUOpen-Drivers/$name $path + pushd $path + git checkout $revision + popd + (( nrepos-- )) + done + + # fix build with gcc9 + sed -i "s/-Werror//g" ${srcdir}/pal/shared/gpuopen/cmake/AMD.cmake +} + +build() { + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + cd ${srcdir}/xgl + cmake -H. -Bbuilds/Release \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_FLAGS=-m32 \ + -DCMAKE_CXX_FLAGS=-m32 \ + -DLLVM_TARGET_ARCH:STRING=i686 \ + -DLLVM_DEFAULT_TARGET_TRIPLE="i686-pc-linux-gnu" \ + -DBUILD_WAYLAND_SUPPORT=On \ + -G Ninja + + ninja -C builds/Release +} + +package() { + install -m755 -d "${pkgdir}"/usr/lib32 + install -m755 -d "${pkgdir}"/usr/share/vulkan/icd.d + install -m755 -d "${pkgdir}"/usr/share/licenses/${pkgname} + + install xgl/builds/Release/icd/amdvlk32.so "${pkgdir}"/usr/lib32/ + install AMDVLK/json/Redhat/amd_icd32.json "${pkgdir}"/usr/share/vulkan/icd.d/ + install AMDVLK/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/ + + sed -i "s/\/lib/\/lib32/g" "${pkgdir}"/usr/share/vulkan/icd.d/amd_icd32.json +}