aports/community/falkon/APKBUILD
2024-09-13 13:50:51 +00:00

72 lines
1.9 KiB
Plaintext

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: team/kde <bribbers@disroot.org>
# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-applications
pkgname=falkon
pkgver=24.08.1
pkgrel=0
pkgdesc="Cross-platform Qt Web Browser"
url="https://github.com/KDE/falkon"
# armhf blocked by extra-cmake-modules
# ppc64le, s390x and riscv64 blocked by qt6-qtwebengine
# loongarch64 blocked by purpose
arch="all !armhf !ppc64le !s390x !riscv64 !loongarch64"
license="GPL-3.0-or-later"
depends="qt6-qtbase-sqlite"
makedepends="
extra-cmake-modules
karchive-dev
kcoreaddons-dev
kcrash-dev
ki18n-dev
kio-dev
kwallet-dev
libxcb-dev
openssl-dev>3
purpose-dev
python3
qt6-qtbase-dev
qt6-qtdeclarative-dev
qt6-qttools-dev
qt6-qtwebengine-dev
samurai
xcb-util-dev
"
checkdepends="xvfb-run"
subpackages="$pkgname-lang $pkgname-bash-completion:bashcomp:noarch"
_repo_url="https://invent.kde.org/network/falkon.git"
source="https://download.kde.org/stable/release-service/$pkgver/src/falkon-$pkgver.tar.xz"
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DBUILD_TESTING=ON
cmake --build build
}
check() {
# Requires working OpenGL
# qmlhistoryapitest, qmlcookiesapitest, qmltabsapitest and qmlwindowsapitest are SIGTRAP'ing
xvfb-run ctest --test-dir build --output-on-failure -E "falkon-(locationbar|webtab|qml-qml(tabsapi|topsitesapi)|sitesettings)test" -j1
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
bashcomp() {
depends=""
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
amove usr/share/bash-completion/completions
}
sha512sums="
be2adc32aaa271a60c5e5e253b7f23807a41c489817e5cbbc454af104652d2262c63f175a002f0643cfd13a437f3569d6e9752522130b4f18ba006390d97c40d falkon-24.08.1.tar.xz
"