From 0f2221df1efe389af59564a43dc37585591532aa Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sat, 4 Aug 2018 15:12:54 -0300 Subject: [PATCH] New package: SPIRV-Headers-1.3. --- .../patches/get-rid-of-custom-target.patch | 24 +++++++++++++++++++ srcpkgs/SPIRV-Headers/template | 17 +++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 srcpkgs/SPIRV-Headers/patches/get-rid-of-custom-target.patch create mode 100644 srcpkgs/SPIRV-Headers/template diff --git a/srcpkgs/SPIRV-Headers/patches/get-rid-of-custom-target.patch b/srcpkgs/SPIRV-Headers/patches/get-rid-of-custom-target.patch new file mode 100644 index 00000000000..1f961144e5f --- /dev/null +++ b/srcpkgs/SPIRV-Headers/patches/get-rid-of-custom-target.patch @@ -0,0 +1,24 @@ +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 new file mode 100644 index 00000000000..85f3dbad696 --- /dev/null +++ b/srcpkgs/SPIRV-Headers/template @@ -0,0 +1,17 @@ +# Template file for 'SPIRV-Headers' +pkgname=SPIRV-Headers +version=1.3 +revision=1 +noarch=yes +build_style=cmake +wrksrc="${pkgname,,}-${version}" +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 + +post_install() { + vlicense LICENSE +}