Date: Friday, September 16, 2022 @ 12:05:38
Author: lcarlier
Revision: 456255
upgpkg: directx-shader-compiler 1.7.2207+gde70ea29b-1: synced with upstream
main branch - this should fix amdvlk package building
Modified:
directx-shader-compiler/trunk/PKGBUILD
----------+
PKGBUILD | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-16 10:55:10 UTC (rev 456254)
+++ PKGBUILD 2022-09-16 12:05:38 UTC (rev 456255)
@@ -2,7 +2,7 @@
pkgname=directx-shader-compiler
pkgdesc="A compiler for HLSL to DXIL (DirectX Intermediate Language)."
-pkgver=1.7.2207
+pkgver=1.7.2207+gde70ea29b
pkgrel=1
arch=('x86_64')
url="https://github.com/microsoft/${_pkgname}"
@@ -9,11 +9,18 @@
license=('custom')
depends=('ncurses')
makedepends=('git' 'cmake' 'ninja' 'python')
-source=("directx-shader-compiler-${pkgver}::git+https://github.com/microsoft/DirectXShaderCompiler.git#tag=v${pkgver}")
+_commit=de70ea29bc8734624c71e0078fbd8d532d20bdea
+source=("directx-shader-compiler::git+https://github.com/microsoft/DirectXShaderCompiler.git#commit=${_commit}")
sha256sums=('SKIP')
+pkgver() {
+ cd "${pkgname}"
+
+ echo 1.7.2207+g$(git rev-parse --short HEAD)
+}
+
prepare() {
- cd "${pkgname}-${pkgver}"
+ cd "${pkgname}"
git submodule update --init
@@ -21,17 +28,18 @@
}
build() {
- cd "${pkgname}-${pkgver}"/build
+ cd "${pkgname}"/build
cmake .. -G Ninja \
-C ../cmake/caches/PredefinedParams.cmake \
- -DCMAKE_BUILD_TYPE=Release
+ -DCMAKE_BUILD_TYPE=Release \
+ -DLLVM_ENABLE_LTO=False
ninja
}
package() {
- cd "${pkgname}-${pkgver}"
+ cd "${pkgname}"
install -m755 -d "${pkgdir}"/usr/bin
install -m755 -d "${pkgdir}"/usr/lib