extra/vulkan-lunarg-tools to 1.1.114+10539+8792090d5-1

This commit is contained in:
Kevin Mihelich 2019-07-26 18:03:36 +00:00
parent 012adf55ee
commit abc7531353

View file

@ -6,14 +6,15 @@
pkgbase=vulkan-lunarg-tools
pkgname=(vulkan-trace vulkan-extra-layers)
pkgver=1.1.97.0+10340+118b2f331
pkgver=1.1.114+10539+8792090d5
pkgrel=1
arch=(x86_64)
url="http://lunarg.com/"
license=('custom')
depends=()
makedepends=(git cmake python vulkan-headers vulkan-validation-layers vulkan-icd-loader glslang spirv-tools libx11 libxrandr wayland qt5-svg)
source=("VulkanLunargTools::git+https://github.com/LunarG/VulkanTools.git#commit=118b2f331839820636539390cdc777ef9e70391f")
makedepends=(git cmake python libx11 libxrandr wayland qt5-svg qt5-webengine)
#source=("https://github.com/LunarG/VulkanTools/archive/v${pkgver}.tar.gz")
source=("VulkanTools-sdk::git+https://github.com/LunarG/VulkanTools.git#commit=8792090d531807522c808663b10043da4a2f502c")
sha256sums=('SKIP')
_install() {
@ -27,9 +28,9 @@ _install() {
}
pkgver() {
cd "${srcdir}/VulkanLunargTools"
cd "${srcdir}"/VulkanTools*
echo 1.1.97.0+$(git rev-list --count HEAD)+$(git rev-parse --short HEAD)
echo 1.1.114+$(git rev-list --count HEAD)+$(git rev-parse --short HEAD)
}
prepare() {
@ -38,21 +39,18 @@ prepare() {
}
build() {
cd "${srcdir}/VulkanLunargTools"
cd "${srcdir}"/VulkanTools*
./update_external_sources.sh
rm -rf build ; mkdir build ; cd build
cmake \
../scripts/update_deps.py
cmake -C helper.cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DCMAKE_INSTALL_DATADIR=/usr/share \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_SKIP_RPATH=True \
-DGLSLANG_INSTALL_DIR=/usr \
-DVULKAN_HEADERS_INSTALL_DIR=/usr/include/vulkan \
-DVULKAN_LOADER_INSTALL_DIR=/usr \
-DVULKAN_VALIDATIONLAYERS_INSTALL_DIR=/usr \
-DBUILD_WSI_XCB_SUPPORT=On \
-DBUILD_WSI_XLIB_SUPPORT=On \
-DBUILD_WSI_WAYLAND_SUPPORT=On \
@ -66,7 +64,7 @@ build() {
package_vulkan-trace() {
pkgdesc="Vulkan tracing and replaying tools"
depends=(vulkan-validation-layers qt5-svg)
depends=(vulkan-validation-layers qt5-svg qt5-webengine)
groups=('vulkan-devel')
[[ $CARCH == i686 || $CARCH == arm || $CARCH == armv6h || $CARCH == armv7h ]] && suffix=32
@ -77,8 +75,8 @@ package_vulkan-trace() {
_install fakeinstall/etc/vulkan/explicit_layer.d/VkLayer_vktrace_layer.json
install -dm755 ${pkgdir}/usr/share/{doc,licenses}/${pkgname}
install -m644 VulkanLunargTools/vktrace/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/
install -m644 VulkanLunargTools/vktrace/vktrace.md "${pkgdir}"/usr/share/doc/${pkgname}/
install -m644 VulkanTools*/vktrace/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/
install -m644 VulkanTools*/vktrace/vktrace.md "${pkgdir}"/usr/share/doc/${pkgname}/
}
package_vulkan-extra-layers() {
@ -97,7 +95,7 @@ package_vulkan-extra-layers() {
_install fakeinstall/etc/vulkan/explicit_layer.d/VkLayer_device_simulation.json
install -dm755 ${pkgdir}/usr/share/{doc,licenses}/${pkgname}
install -m644 VulkanLunargTools/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
install -m644 VulkanLunargTools/layersvt/README.md "${pkgdir}"/usr/share/doc/${pkgname}/
install -m644 VulkanTools*/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
install -m644 VulkanTools*/layersvt/README.md "${pkgdir}"/usr/share/doc/${pkgname}/
}