[arch-commits] Commit in vulkan-docs/trunk (PKGBUILD)

Laurent Carlier lcarlier at archlinux.org
Mon Dec 19 20:03:48 UTC 2016


    Date: Monday, December 19, 2016 @ 20:03:47
  Author: lcarlier
Revision: 284335

upgpkg: vulkan-docs 1:1.0.38-1

upstream update 1.0.38

Modified:
  vulkan-docs/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++++++++++++++++---------
 1 file changed, 19 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-12-19 19:46:34 UTC (rev 284334)
+++ PKGBUILD	2016-12-19 20:03:47 UTC (rev 284335)
@@ -3,7 +3,7 @@
 
 pkgbase=vulkan-docs
 pkgname=(vulkan-headers vulkan-man-pages vulkan-html-docs)
-pkgver=1.0.34
+pkgver=1.0.38
 pkgrel=1
 epoch=1
 _pkgname=Vulkan-Docs
@@ -10,20 +10,30 @@
 arch=(any)
 url="https://www.khronos.org/vulkan/"
 license=('custom')
-makedepends=(asciidoc python3 tinyxml2)
+makedepends=(asciidoc python3 tinyxml2 cmake git)
 groups=(vulkan-devel)
 source=("https://github.com/KhronosGroup/${_pkgname}/archive/v${pkgver}-core.tar.gz"
-        https://raw.githubusercontent.com/KhronosGroup/Vulkan-Hpp/master/VulkanHppGenerator.cpp)
-md5sums=('4042f31dc6bc171a2204ca51d9f75571'
-         '422e798179bbc3bb76284009749883a8')
+        git+https://github.com/leethomason/tinyxml2.git#commit=c8dad95
+        git+https://github.com/KhronosGroup/Vulkan-Hpp.git#commit=09e169c)
+md5sums=('d8f2db57201cb56e94582654bf29d67e'
+         'SKIP'
+         'SKIP')
 
+prepare() {
+  cd Vulkan-Hpp
+  git submodule init
+  git config submodule.tinyxml2.url $srcdir/tinyxml2
+  git submodule update
+}
+
 build() {
   # we need this to build hpp headers
-  g++ VulkanHppGenerator.cpp -DVK_SPEC="\"vk.xml\"" -DVULKAN_HPP="\"vulkan.hpp\"" -ltinyxml2 -o VulkanHppGenerator
+  cd Vulkan-Hpp
+  cmake ./ && make
 
-  ./VulkanHppGenerator "${_pkgname}-${pkgver}-core/src/spec/vk.xml"
+  ./VulkanHppGenerator "${srcdir}/${_pkgname}-${pkgver}-core/src/spec/vk.xml"
 
-  cd "${_pkgname}-${pkgver}-core/doc/specs/vulkan"
+  cd "${srcdir}/${_pkgname}-${pkgver}-core/doc/specs/vulkan"
 
   #./makeKHR manpages
   # Broken, see https://github.com/KhronosGroup/Vulkan-Docs/issues/367
@@ -43,7 +53,7 @@
 
   install -m644 src/vulkan/vk_platform.h ${pkgdir}/usr/include/vulkan/
   install -m644 src/vulkan/vulkan.h ${pkgdir}/usr/include/vulkan
-  install -m644 ${srcdir}/vulkan.hpp ${pkgdir}/usr/include/vulkan
+  install -m644 ${srcdir}/Vulkan-Hpp/vulkan/vulkan.hpp ${pkgdir}/usr/include/vulkan
   install -m644 src/spec/vk.xml ${pkgdir}/usr/share/vulkan
 
   install -m644 doc/specs/vulkan/copyright-ccby.txt ${pkgdir}/usr/share/licenses/${pkgname}/copyright-ccby.txt



More information about the arch-commits mailing list