[arch-commits] Commit in lib32-amdvlk/repos/multilib-x86_64 (PKGBUILD PKGBUILD)

Laurent Carlier lcarlier at gemini.archlinux.org
Fri May 20 11:52:36 UTC 2022


    Date: Friday, May 20, 2022 @ 11:52:36
  Author: lcarlier
Revision: 1209361

archrelease: copy trunk to multilib-x86_64

Added:
  lib32-amdvlk/repos/multilib-x86_64/PKGBUILD
    (from rev 1209360, lib32-amdvlk/trunk/PKGBUILD)
Deleted:
  lib32-amdvlk/repos/multilib-x86_64/PKGBUILD

----------+
 PKGBUILD |  144 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 72 insertions(+), 72 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-20 11:52:31 UTC (rev 1209360)
+++ PKGBUILD	2022-05-20 11:52:36 UTC (rev 1209361)
@@ -1,72 +0,0 @@
-# Maintainer: Laurent Carlier <lordheavym at gmail.com>
-# Contributor: lod <aur at cyber-anlage.de>
-
-pkgname=lib32-amdvlk
-pkgver=2022.Q2.1
-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')
-makedepends+=('clang' 'lld')
-options=('!lto')
-source=("https://github.com/GPUOpen-Drivers/AMDVLK/archive/v-${pkgver}.tar.gz")
-sha256sums=('d839e711164e9603579289776c889b5dc77b0b43579e9e229405018d3430ceec')
-            
-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
-}
-
-build() {
-  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
-
-  # use lld and clang to fix linking error
-  # https://github.com/GPUOpen-Drivers/llpc/issues/1645
-  cd ${srcdir}/xgl
-  cmake -H. -Bbuilds/Release \
-    -DCMAKE_C_COMPILER=clang \
-    -DCMAKE_CXX_COMPILER=clang++ \
-    -DLLVM_USE_LINKER=lld \
-    -DCMAKE_EXE_LINKER_FLAGS='-fuse-ld=lld' \
-    -DCMAKE_SHARED_LINKER_FLAGS='-fuse-ld=lld' \
-    -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/vulkan/implicit_layer.d
-  install -m755 -d "${pkgdir}"/usr/share/licenses/${pkgname}
-
-  install xgl/builds/Release/icd/amdvlk32.so "${pkgdir}"/usr/lib32/
-  install xgl/builds/Release/icd/amd_icd32.json "${pkgdir}"/usr/share/vulkan/icd.d/
-  install xgl/builds/Release/icd/amd_icd32.json "${pkgdir}"/usr/share/vulkan/implicit_layer.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
-  sed -i "s/\/lib/\/lib32/g" "${pkgdir}"/usr/share/vulkan/implicit_layer.d/amd_icd32.json
-}

Copied: lib32-amdvlk/repos/multilib-x86_64/PKGBUILD (from rev 1209360, lib32-amdvlk/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-05-20 11:52:36 UTC (rev 1209361)
@@ -0,0 +1,72 @@
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+# Contributor: lod <aur at cyber-anlage.de>
+
+pkgname=lib32-amdvlk
+pkgver=2022.Q2.2
+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')
+makedepends+=('clang' 'lld')
+options=('!lto')
+source=("https://github.com/GPUOpen-Drivers/AMDVLK/archive/v-${pkgver}.tar.gz")
+sha256sums=('516f856b6eb28b582449242275ee6c63d44f7e05436fb4c0fe199c41764b8874')
+            
+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
+}
+
+build() {
+  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+  # use lld and clang to fix linking error
+  # https://github.com/GPUOpen-Drivers/llpc/issues/1645
+  cd ${srcdir}/xgl
+  cmake -H. -Bbuilds/Release \
+    -DCMAKE_C_COMPILER=clang \
+    -DCMAKE_CXX_COMPILER=clang++ \
+    -DLLVM_USE_LINKER=lld \
+    -DCMAKE_EXE_LINKER_FLAGS='-fuse-ld=lld' \
+    -DCMAKE_SHARED_LINKER_FLAGS='-fuse-ld=lld' \
+    -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/vulkan/implicit_layer.d
+  install -m755 -d "${pkgdir}"/usr/share/licenses/${pkgname}
+
+  install xgl/builds/Release/icd/amdvlk32.so "${pkgdir}"/usr/lib32/
+  install xgl/builds/Release/icd/amd_icd32.json "${pkgdir}"/usr/share/vulkan/icd.d/
+  install xgl/builds/Release/icd/amd_icd32.json "${pkgdir}"/usr/share/vulkan/implicit_layer.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
+  sed -i "s/\/lib/\/lib32/g" "${pkgdir}"/usr/share/vulkan/implicit_layer.d/amd_icd32.json
+}



More information about the arch-commits mailing list