From 774a3fef752c34e84c63ddacb02b94437ecf0286 Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 22 Dec 2020 21:37:02 +0100 Subject: [PATCH] amdvlk: generalize with wordsize --- srcpkgs/amdvlk/template | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/srcpkgs/amdvlk/template b/srcpkgs/amdvlk/template index 38d8610f75e..63f0d767104 100644 --- a/srcpkgs/amdvlk/template +++ b/srcpkgs/amdvlk/template @@ -64,17 +64,10 @@ pre_configure() { } do_install() { - case $XBPS_TARGET_MACHINE in - i686*|mips*|arm*|ppc|ppc-musl) - vinstall build/icd/amdvlk32.so 644 usr/lib/ - vinstall ${wrksrc}/AMDVLK/json/Redhat/amd_icd32.json 644 usr/share/vulkan/icd.d/ - vsed -i ${DESTDIR}/usr/share/vulkan/icd.d/amd_icd32.json -e 's#/usr/lib/#/usr/lib32/#g' - ;; - *) - vinstall build/icd/amdvlk64.so 644 usr/lib/ - vinstall ${wrksrc}/AMDVLK/json/Redhat/amd_icd64.json 644 usr/share/vulkan/icd.d/ - vsed -i ${DESTDIR}/usr/share/vulkan/icd.d/amd_icd64.json -e 's#/usr/lib64/#/usr/lib/#g' - ;; - esac + vinstall build/icd/amdvlk${XBPS_TARGET_WORDSIZE}.so 644 usr/lib/ + vinstall ${wrksrc}/AMDVLK/json/Redhat/amd_icd${XBPS_TARGET_WORDSIZE}.json \ + 644 usr/share/vulkan/icd.d/ + vsed -i ${DESTDIR}/usr/share/vulkan/icd.d/amd_icd${XBPS_TARGET_WORDSIZE}.json \ + -e "s#/usr/lib/#/usr/lib${XBPS_TARGET_WORDSIZE}/#g" vlicense ${wrksrc}/AMDVLK/LICENSE.txt }