aports/community/qt6-qtserialport/APKBUILD
2025-06-04 08:24:50 +00:00

58 lines
1.6 KiB
Text

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=qt6
maintainer="Bart Ribbers <bribbers@disroot.org>"
pkgname=qt6-qtserialport
pkgver=6.8.3
pkgrel=0
pkgdesc="Provides access to hardware and virtual serial ports"
url="https://qt.io/"
arch="all"
license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0"
depends_dev="
qt6-qtbase-dev
qt6-qtbase-private-dev
"
makedepends="$depends_dev
cmake
perl
samurai
"
subpackages="$pkgname-dev"
case $pkgver in
*_alpha*|*_beta*|*_rc*) _rel=development_releases;;
*) _rel=official_releases;;
esac
source="https://download.qt.io/$_rel/qt/${pkgver%.*}/${pkgver/_/-}/submodules/qtserialport-everywhere-src-${pkgver/_/-}.tar.xz"
options="!check" # No usable tests
builddir="$srcdir/qtserialport-everywhere-src-${pkgver/_/-}"
build() {
export CFLAGS="$CFLAGS -g1 -flto=auto"
export CXXFLAGS="$CXXFLAGS -g1 -flto=auto"
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DINSTALL_BINDIR=lib/qt6/bin \
-DINSTALL_DOCDIR=share/doc/qt6 \
-DINSTALL_ARCHDATADIR=lib/qt6 \
-DINSTALL_DATADIR=share/qt6 \
-DINSTALL_INCLUDEDIR=include/qt6 \
-DINSTALL_MKSPECSDIR=lib/qt6/mkspecs \
-DINSTALL_EXAMPLESDIR=share/doc/qt6/examples
cmake --build build --parallel
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
dev() {
default_dev
amove usr/lib/qt6/sbom
}
sha512sums="
343537aedd9c84dd5d6889d45babff181d7ef05927fd9cfdbb9389066f8860e2522bc059ca2c5c9af4c88bca255e0fc40b5eea84b93c970123a94afc803a638d qtserialport-everywhere-src-6.8.3.tar.xz
"