PKGBUILDs/extra/vulkan-tools/PKGBUILD

55 lines
1.5 KiB
Bash
Raw Normal View History

2016-09-02 00:36:46 +00:00
# Maintainer: Laurent Carlier <lordheavym@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - cmake with -DBUILD_CUBE=OFF
2016-09-02 00:36:46 +00:00
pkgname=vulkan-tools
2019-12-06 13:26:51 +00:00
pkgver=1.1.128
2016-12-03 15:51:36 +00:00
pkgrel=1
2018-02-11 16:57:40 +00:00
arch=(x86_64)
url="https://www.khronos.org/vulkan/"
pkgdesc="Vulkan Utilities and Tools"
2016-09-02 00:36:46 +00:00
license=('custom')
depends=(gcc-libs libxcb vulkan-icd-loader)
makedepends=(git cmake python vulkan-headers libx11 wayland)
2019-12-06 13:26:51 +00:00
source=("https://github.com/KhronosGroup/Vulkan-Tools/archive/v${pkgver}.tar.gz")
2019-02-25 19:32:31 +00:00
#source=("git+https://github.com/KhronosGroup/Vulkan-Tools.git#commit=534747d770a84a18a20949430679aa1b7bf0f398")
2019-12-06 13:26:51 +00:00
sha256sums=('ea660f23cd7f53b4272a49e9581eb40cf95a9586e5a5ebd30ce0e8722c363319')
2016-09-02 00:36:46 +00:00
2019-02-25 19:32:31 +00:00
#pkgver() {
# cd "${srcdir}"/Vulkan-Tools*
#
# echo 1.1.97.0+$(git rev-list --count HEAD)+$(git rev-parse --short HEAD)
#}
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 \
-DBUILD_CUBE=OFF \
-DBUILD_VULKANINFO=ON \
-DBUILD_ICD=OFF \
2016-09-02 00:36:46 +00:00
-DCMAKE_BUILD_TYPE=Release \
..
make
}
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
make DESTDIR="${pkgdir}" install
2016-09-02 00:36:46 +00:00
install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
2016-09-02 00:36:46 +00:00
}