40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# Template file for 'qt6-webchannel'
|
|
pkgname=qt6-webchannel
|
|
version=6.4.2
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="perl qt6-base qt6-declarative-host-tools"
|
|
makedepends="qt6-base-devel qt6-declarative-devel qt6-websockets-devel"
|
|
short_desc="Cross-platform application and UI framework - webchannel"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
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/qtwebchannel-everywhere-src-${version}.tar.xz"
|
|
checksum=06657b2b2509f26c733b7c40da0dbb8571a215b97f99685a6fc3bc51dcbebd87
|
|
|
|
pre_check() {
|
|
export QML2_IMPORT_PATH="$wrksrc/build/lib/qt6/qml"
|
|
}
|
|
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/usr/tests
|
|
}
|
|
|
|
qt6-webchannel-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} qt6-base-devel>=${version}_1
|
|
qt6-websockets-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/QtWebChannel/plugins.qmltypes
|
|
vmove usr/lib/qt6/qml/QtWebChannel/qmldir
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.prl"
|
|
vmove usr/share/qt6/modules
|
|
}
|
|
}
|