summaryrefslogtreecommitdiff
path: root/qt6-connectivity/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'qt6-connectivity/Pkgfile')
-rw-r--r--qt6-connectivity/Pkgfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/qt6-connectivity/Pkgfile b/qt6-connectivity/Pkgfile
new file mode 100644
index 000000000..a175540dd
--- /dev/null
+++ b/qt6-connectivity/Pkgfile
@@ -0,0 +1,22 @@
+# Description: Provides access to Bluetooth hardware
+# URL: https://www.qt.io/
+# Maintainer: Danny Rawlins, crux at romster dot me
+# Depends on: qt6-declarative bluez
+
+name=qt6-connectivity
+version=6.2.0
+release=1
+source=(https://download.qt.io/official_releases/qt/${version%.*}/$version/submodules/qtconnectivity-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 qtconnectivity-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
+}

Generated by cgit