2016-09-02 00:36:46 +00:00
|
|
|
# Maintainer: Laurent Carlier <lordheavym@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2018-07-21 11:52:53 +00:00
|
|
|
# - cmake with -DBUILD_CUBE=OFF
|
2016-09-02 00:36:46 +00:00
|
|
|
|
2018-07-21 11:52:53 +00:00
|
|
|
pkgname=vulkan-tools
|
2020-05-09 06:54:28 +00:00
|
|
|
pkgver=1.2.137
|
2016-12-03 15:51:36 +00:00
|
|
|
pkgrel=1
|
2018-02-11 16:57:40 +00:00
|
|
|
arch=(x86_64)
|
2018-07-21 11:52:53 +00:00
|
|
|
url="https://www.khronos.org/vulkan/"
|
|
|
|
pkgdesc="Vulkan Utilities and Tools"
|
2016-09-02 00:36:46 +00:00
|
|
|
license=('custom')
|
2018-07-21 11:52:53 +00:00
|
|
|
depends=(gcc-libs libxcb vulkan-icd-loader)
|
|
|
|
makedepends=(git cmake python vulkan-headers libx11 wayland)
|
2020-05-09 06:54:28 +00:00
|
|
|
source=("https://github.com/KhronosGroup/Vulkan-Tools/archive/v${pkgver}.tar.gz"
|
|
|
|
0001-cube-Remove-dependency-on-VK_DYNAMIC_STATE_RANGE_SIZ.patch)
|
|
|
|
sha256sums=('4b9e0aab8e873282a7163b3e9966928188c06697002f8f1ce0c567a06a1b5fda'
|
|
|
|
'8da2ac049c5e7d1253e5b55fa9ef0c1f670d17b6a0785561de5edc12e9c9d7a6')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}"/Vulkan-Tools*
|
|
|
|
|
|
|
|
patch -Np1 -i ../0001-cube-Remove-dependency-on-VK_DYNAMIC_STATE_RANGE_SIZ.patch
|
|
|
|
}
|
2018-03-10 14:08:44 +00:00
|
|
|
|
2016-09-02 00:36:46 +00:00
|
|
|
build() {
|
2019-02-25 19:32:31 +00:00
|
|
|
cd "${srcdir}"/Vulkan-Tools*
|
2016-09-02 00:36:46 +00:00
|
|
|
|
|
|
|
rm -rf build ; mkdir build ; cd build
|
|
|
|
cmake \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
|
|
|
-DCMAKE_INSTALL_DATADIR=/usr/share \
|
|
|
|
-DCMAKE_SKIP_RPATH=True \
|
2016-12-20 00:19:17 +00:00
|
|
|
-DBUILD_WSI_XCB_SUPPORT=On \
|
|
|
|
-DBUILD_WSI_XLIB_SUPPORT=On \
|
|
|
|
-DBUILD_WSI_WAYLAND_SUPPORT=On \
|
2018-07-21 11:52:53 +00:00
|
|
|
-DBUILD_CUBE=OFF \
|
|
|
|
-DBUILD_VULKANINFO=ON \
|
|
|
|
-DBUILD_ICD=OFF \
|
2016-09-02 00:36:46 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
..
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2018-07-21 11:52:53 +00:00
|
|
|
package() {
|
2016-09-02 00:36:46 +00:00
|
|
|
groups=('vulkan-devel')
|
|
|
|
|
2019-02-25 19:32:31 +00:00
|
|
|
cd "${srcdir}"/Vulkan-Tools*/build
|
2016-09-02 00:36:46 +00:00
|
|
|
|
2018-07-21 11:52:53 +00:00
|
|
|
make DESTDIR="${pkgdir}" install
|
2016-09-02 00:36:46 +00:00
|
|
|
|
|
|
|
install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
|
2018-07-21 11:52:53 +00:00
|
|
|
install -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
|
2016-09-02 00:36:46 +00:00
|
|
|
}
|