opt/qt6-shadertools/Pkgfile
2023-04-02 23:44:32 +10:00

23 lines
945 B
Plaintext

# Description: Experimental module providing APIs and a host tool to host tool to perform graphics and compute shader conditioning for the upcoming Qt graphics abstraction layer
# URL: https://www.qt.io/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: qt6-base
name=qt6-shadertools
version=6.4.3
release=1
source=(https://download.qt.io/official_releases/qt/${version%.*}/$version/submodules/qtshadertools-everywhere-src-$version.tar.xz)
build() {
prt-get isinst ninja && PKGMK_QT6+=' -G Ninja'
prt-get isinst ccache && PKGMK_QT6+=' -D QT_USE_CCACHE=ON' && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
cmake -S qtshadertools-everywhere-src-$version -B build $PKGMK_QT6 \
-D INSTALL_PUBLICBINDIR=usr/bin \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS"
cmake --build build
DESTDIR=$PKG cmake --install build
}