aports/community/qt5-qtwebview/APKBUILD
psykose 98b4aa9403 community/qt5*: upgrade to correct kde/5.15 commits
the prior 5.15.9- tags correspond to upstream qt, not the kde patches.

for most this is the same commit (no patches), but base, wayland, .. all
have kde patches.
2023-04-23 19:00:28 +02:00

66 lines
1.9 KiB
Plaintext

# Contributor: Danct12 <danct12@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qt5-qtwebview
pkgver=5.15.9_git20230323
pkgrel=1
_module="${pkgname#qt5-}"
_pkgver=23d67d0de3301dbed5d8c5880b6cf60bfa9eeb2a
_fullname=$_module-$_pkgver
# ppc64le, s390x and riscv64 blocked by qt5-qtwebengine
# armhf blocked by qt5-qtdeclarative
arch="all !armhf !ppc64le !s390x !riscv64"
url="https://www.qt.io/developers/"
license="LGPL-3.0-only AND GPL-2.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0"
pkgdesc="Provides a way to display web content in a QML application"
depends="qt5-qtwebengine"
depends_dev="qt5-qtdeclarative-dev"
makedepends="$depends_dev
qt5-qtbase-dev
"
subpackages="$pkgname-dev"
source="https://dev.alpinelinux.org/archive/qt/$_fullname.tar.xz"
builddir="$srcdir/$_fullname"
_disturl="dev.alpinelinux.org:/archive/qt/"
snapshot() {
clean
makedepends="git xz rsync tar" deps
mkdir -p "$srcdir" && cd "$srcdir"
git clone --filter=tree:0 https://invent.kde.org/qt/qt/$_module.git .
git archive --format tar --prefix=$_fullname/ $_pkgver > "$SRCDEST"/$_fullname.tar
xz -vv -T0 -9 -e "$SRCDEST"/$_fullname.tar
rsync --progress -La "$SRCDEST"/$_fullname.tar.xz $_disturl
}
prepare() {
default_prepare
# We need to make the build system think we're running in a git repository
# so it correctly symlinks during the build
mkdir .git
}
build() {
qmake-qt5 CONFIG+="lang-all handwriting"
make
}
check() {
make check
}
package() {
make INSTALL_ROOT="$pkgdir" install
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
find "$pkgdir/usr/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
install -d "$pkgdir"/usr/share/licenses
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/$pkgname
}
sha512sums="
e762d1e9aae659a7cc21254e47dcb12528436dc43a604aa0a9bdcf6f4262ed9bdbddf6fe1ab675dbda9fbb30ea25c513eaba4aa7bf5689f0dafa045bfc07c510 qtwebview-23d67d0de3301dbed5d8c5880b6cf60bfa9eeb2a.tar.xz
"