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

# 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='libvulkan'
SLACKDESC="vulkan-tools: vulkan-tools $PKGVER (Vulkan tools and demos)
vulkan-tools: 
vulkan-tools: This project provides Vulkan tools and utilities that can assist 
vulkan-tools: development by enabling developers to verify their applications 
vulkan-tools: correct use of the Vulkan API.
vulkan-tools: 
vulkan-tools: https://github.com/KhronosGroup/Vulkan-Tools
vulkan-tools: 
vulkan-tools: 
vulkan-tools: 
vulkan-tools:
"

### 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{,-64}     &&
	mv -v vkcube{,-64}       &&
	mv -v vulkaninfo{,-64}   &&

	ln -sfv multiarch_wrapper vkcubepp   &&
	ln -sfv multiarch_wrapper vkcube     &&
	ln -sfv multiarch_wrapper vulkaninfo &&
	
	true
}
