### this file is sourced not run
PKGBUILD=1
PKGARCH=i686

# source: james
# release tarball
PKGVER=1.2.153
TARBALL=Vulkan-Tools-$PKGVER.tar.gz
MD5SUM=3da67823f959ca569e84f4b1676a13cb
SRC_URL=https://github.com/KhronosGroup/Vulkan-Tools/archive/v${PKGVER}.tar.gz
BUNDLE=

# git-master tarball
#PKGVER=
#MD5SUM=
#hash=
#hash7=${hash#???????}; hash7=${hash%$hash7}
#TARBALL=Vulkan-Tools-$PKGVER-$hash7.tar.gz
#SRC_URL=https://github.com/KhronosGroup/Vulkan-Tools/archive/$hash.tar.gz

SLACKREQ='libvulkan32'
SLACKDESC="vulkan-tools32: vulkan-tools32 $PKGVER (Vulkan tools and demos)
vulkan-tools32: 
vulkan-tools32: This project provides Vulkan tools and utilities that can assist 
vulkan-tools32: development by enabling developers to verify their applications 
vulkan-tools32: correct use of the Vulkan API.
vulkan-tools32: 
vulkan-tools32: https://github.com/KhronosGroup/Vulkan-Tools
vulkan-tools32: 
vulkan-tools32: This is 32-bit version of vulkan-tools
vulkan-tools32: 
vulkan-tools32:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	# use locally provided glslang compiler
	#echo nameserver 8.8.8.8 > /etc/resolv.conf

	CMAKEFLAGS="$CMAKEFLAGS -DBUILD_WSI_WAYLAND_SUPPORT=OFF"
	pkg_build_cmake &&
	pkg_build_slackdesc &&
	
	#rm -f /etc/resolv.conf &&
	# multi-lib
	cd /usr/bin &&
	mv -v vkcubepp{,-32}     &&
	mv -v vkcube{,-32}       &&
	mv -v vulkaninfo{,-32}   &&

	true
}
