From 9fe0148de166e03d8783f197ede186c2c52a0936 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Thu, 27 Sep 2018 16:18:31 -0300 Subject: [PATCH] SPIRV-Headers: update to 1.3.37 --- .../patches/get-rid-of-custom-target.patch | 24 ------------------- srcpkgs/SPIRV-Headers/template | 16 +++++++++---- 2 files changed, 12 insertions(+), 28 deletions(-) delete mode 100644 srcpkgs/SPIRV-Headers/patches/get-rid-of-custom-target.patch diff --git a/srcpkgs/SPIRV-Headers/patches/get-rid-of-custom-target.patch b/srcpkgs/SPIRV-Headers/patches/get-rid-of-custom-target.patch deleted file mode 100644 index 1f961144e5f..00000000000 --- a/srcpkgs/SPIRV-Headers/patches/get-rid-of-custom-target.patch +++ /dev/null @@ -1,24 +0,0 @@ -From c44560949ec78dd13fe1394bf2957e4fd5adec79 Mon Sep 17 00:00:00 2001 -From: Brian Evans -Date: Wed, 14 Mar 2018 20:00:22 -0400 -Subject: [PATCH] Get rid of custom target - ---- - CMakeLists.txt | 4 +--- - 1 file changed, 1 insertion(+), 3 deletions(-) - ---- CMakeLists.txt -+++ CMakeLists.txt -@@ -45,7 +45,5 @@ project(SPIRV-Headers) - # 3. cmake --build . install-headers - - file(GLOB_RECURSE FILES include/spirv/*) --add_custom_target(install-headers -- COMMAND cmake -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/include/spirv ${CMAKE_INSTALL_PREFIX}/include/spirv) -- -+INSTALL(DIRECTORY include/spirv/ DESTINATION include/spirv) - add_subdirectory(example) --- -2.16.2 - - diff --git a/srcpkgs/SPIRV-Headers/template b/srcpkgs/SPIRV-Headers/template index 85f3dbad696..df03918556b 100644 --- a/srcpkgs/SPIRV-Headers/template +++ b/srcpkgs/SPIRV-Headers/template @@ -1,17 +1,25 @@ # Template file for 'SPIRV-Headers' pkgname=SPIRV-Headers -version=1.3 +version=1.3.37 revision=1 +_githash="d5b2e1255f706ce1f88812217e9a554f299848af" noarch=yes build_style=cmake -wrksrc="${pkgname,,}-${version}" +wrksrc="${pkgname}-${_githash}" short_desc="Machine-readable files for the SPIR-V Registry" maintainer="maxice8 " license="GPL-3.0-or-later" homepage="https://github.com/KhronosGroup/SPIRV-Headers" -distfiles="http://http.debian.net/debian/pool/main/s/spirv-headers/spirv-headers_${version}.orig.tar.gz" -checksum=5c24fbd14773245dba0c541617513e7a4372b7cec902688697177e80a8dd52af +distfiles="https://github.com/KhronosGroup/SPIRV-Headers/archive/${_githash}.tar.gz" +checksum=ac0dba40509922b3284b90fc896eb1a480d32a503635ea702b003bdff89729e1 post_install() { vlicense LICENSE } + +# This package has no stable releases from upstream so we use the version +# of the standard followed by the number of commits taken from their GitHub +# since the standard was introduced +# +# for the current version 1.3 use: +# git rev-list --count 02ffc719aa9f9c1dce5ce05743fb1afe6cbf17ea..HEAD