diff --git a/common/shlibs b/common/shlibs index 60c64d264b4..9609ee71e5b 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2071,6 +2071,8 @@ libQt6Help.so.6 qt6-tools-6.1.0_1 libQt6UiTools.so.6 qt6-tools-6.1.0_1 libQt6Nfc.so.6 qt6-connectivity-6.3.1_1 libQt6Bluetooth.so.6 qt6-connectivity-6.3.1_1 +libQt6Sensors.so.6 qt6-sensors-6.3.1_1 +libQt6SensorsQuick.so.6 qt6-sensors-6.3.1_1 libQt6HunspellInputMethod.so.6 qt6-virtualkeyboard-6.1.0_1 libQt6VirtualKeyboard.so.6 qt6-virtualkeyboard-6.1.0_1 libQt6SerialPort.so.6 qt6-serialport-6.2.0alpha_1 diff --git a/srcpkgs/qt6-sensors-devel b/srcpkgs/qt6-sensors-devel new file mode 120000 index 00000000000..eb9457f0405 --- /dev/null +++ b/srcpkgs/qt6-sensors-devel @@ -0,0 +1 @@ +qt6-sensors \ No newline at end of file diff --git a/srcpkgs/qt6-sensors/patches/no-cmake-test.patch b/srcpkgs/qt6-sensors/patches/no-cmake-test.patch new file mode 100644 index 00000000000..64f81563cb1 --- /dev/null +++ b/srcpkgs/qt6-sensors/patches/no-cmake-test.patch @@ -0,0 +1,8 @@ +--- a/tests/auto/CMakeLists.txt ++++ b/tests/auto/CMakeLists.txt +@@ -1,5 +1,4 @@ + add_subdirectory(qsensor) +-add_subdirectory(cmake) + if(TARGET Qt::Quick) + add_subdirectory(qml) + endif() diff --git a/srcpkgs/qt6-sensors/template b/srcpkgs/qt6-sensors/template new file mode 100644 index 00000000000..5a81f43b60e --- /dev/null +++ b/srcpkgs/qt6-sensors/template @@ -0,0 +1,31 @@ +# Template file for 'qt6-sensors' +pkgname=qt6-sensors +version=6.3.1 +revision=1 +wrksrc="qtsensors-everywhere-src-${version}" +build_style=cmake +hostmakedepends="perl qt6-declarative-devel qt6-svg-devel pkg-config" +makedepends="qt6-declarative-devel qt6-svg-devel" +short_desc="Cross-platform application and UI framework - Sensors" +maintainer="Đoàn Trần Công Danh " +license="(LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only) AND GPL-3.0-only with Qt-GPL-exception-1.0" +homepage="https://qt.io/" +distfiles="http://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qtsensors-everywhere-src-${version}.tar.xz" +checksum=4b240b59edba9a42b4735758a25f279a26841b982864e7b38f6ef0b81e0d60cc + +qt6-sensors-devel_package() { + depends="${sourcepkg}>=${version}_${revision} + qt6-declarative-devel>=${version}_1" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/cmake + vmove usr/lib/metatypes + vmove usr/lib/pkgconfig + vmove usr/lib/qt6/mkspecs + vmove usr/lib/qt6/qml/QtSensors/plugins.qmltypes + vmove usr/lib/qt6/qml/QtSensors/qmldir + vmove "usr/lib/*.so" + vmove "usr/lib/*.prl" + } +}