mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
61 lines
1.6 KiB
Plaintext
61 lines
1.6 KiB
Plaintext
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=qt6-qtpositioning
|
|
pkgver=6.5.0
|
|
pkgrel=0
|
|
pkgdesc="Provides access to position, satellite and area monitoring classes"
|
|
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="xdg-utils"
|
|
depends_dev="
|
|
qt6-qtbase-dev
|
|
qt6-qtdeclarative-dev
|
|
"
|
|
makedepends="$depends_dev
|
|
cmake
|
|
perl
|
|
samurai
|
|
"
|
|
subpackages="$pkgname-dev"
|
|
builddir="$srcdir/qtpositioning-everywhere-src-${pkgver/_/-}"
|
|
|
|
case $pkgver in
|
|
*_alpha*|*_beta*|*_rc*) _rel=development_releases;;
|
|
*) _rel=official_releases;;
|
|
esac
|
|
|
|
source="https://download.qt.io/$_rel/qt/${pkgver%.*}/${pkgver/_/-}/submodules/qtpositioning-everywhere-src-${pkgver/_/-}.tar.xz"
|
|
|
|
# Backwards compatibility
|
|
provides="qt6-qtlocation=$pkgver-r$pkgrel"
|
|
replaces="qt6-qtlocation"
|
|
|
|
build() {
|
|
export CFLAGS="$CFLAGS -flto=auto"
|
|
export CXXFLAGS="$CXXFLAGS -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
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
sha512sums="
|
|
c4ba9c6a1b73eb5db74eb405d2a5814e18309ad353536116bbf9042aa58d31607683593d797b78e662bb246941baa61f1856357b1a6c2fc1bf0a7bcf18fe921e qtpositioning-everywhere-src-6.5.0.tar.xz
|
|
"
|