blob: c0e72dec24614977927823229f4cc710103ce2b8 (
plain)
1 # Description: Classes for QML and JavaScript languages
2 # URL: https://www.qt.io/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: at-spi2-core qt6-shadertools
5
6 name=qt6-declarative
7 version=6.4.2
8 release=1
9 source=(https://download.qt.io/official_releases/qt/${version%.*}/$version/submodules/qtdeclarative-everywhere-src-$version.tar.xz)
10
11 build() {
12 prt-get isinst ninja && PKGMK_QT6+=' -G Ninja'
13 prt-get isinst ccache && PKGMK_QT6+=' -D QT_USE_CCACHE=ON' && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
14
15 cmake -S qtdeclarative-everywhere-src-$version -B build $PKGMK_QT6 \
16 -D INSTALL_PUBLICBINDIR=usr/bin \
17 -D CMAKE_BUILD_TYPE=Release \
18 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
19 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS"
20 cmake --build build
21 DESTDIR=$PKG cmake --install build
22
23 cd $PKG
24 mkdir usr/bin
25 while read _line; do
26 ln -s $_line
27 done < $SRC/build/user_facing_tool_links.txt
28 }
|