SUMMARY="A cross-platform application and UI framework (Examples)"
DESCRIPTION="Qt is a cross-platform application framework that is widely \
used for developing software with a graphical user interface, and also used \
for developing non-GUI programs such as command-line tools and consoles for \
servers."
HOMEPAGE="https://qt.io/"
COPYRIGHT="2015-2021 The Qt Company Ltd."
LICENSE="GNU LGPL v2.1
	GNU LGPL v3
	GNU FDL v1"
REVISION="1"
SOURCE_URI="https://archlinux.thaller.ws/extra/os/x86_64/qt6-examples-$portVersion-1-any.pkg.tar.zst#noarchive"
CHECKSUM_SHA256="da5934607b63638583179d6e3839a42005a3a2c3d00cfcdede3bab9d1553b146"
SOURCE_DIR="qt6-doc-$portVersion"

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

DISABLE_SOURCE_PACKAGE="yes"

PROVIDES="
	qt6_examples$secondaryArchSuffix = $portVersion compat >= 6
	"
REQUIRES="
	haiku$secondaryArchSuffix
	qt6_tools$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	cmd:tar
	cmd:unzstd
	"

BUILD()
{
	true
}

INSTALL()
{
	mkdir -p $dataDir/Qt6

	tar -C $dataDir/Qt6 \
		-I zstd \
		--strip-components 4 \
		-xvf qt6-examples-$portVersion-1-any.pkg.tar.zst
}
