mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
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.
66 lines
1.9 KiB
Plaintext
66 lines
1.9 KiB
Plaintext
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=qt5-qtwebglplugin
|
|
pkgver=5.15.9_git20230323
|
|
pkgrel=1
|
|
_module="${pkgname#qt5-}"
|
|
_pkgver=64beacdd2d0f6fe0796bd291c9ab33f206a333c3
|
|
_fullname=$_module-$_pkgver
|
|
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
|
|
url="https://www.qt.io/developers/"
|
|
license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0"
|
|
pkgdesc="QPA plugin for running an application via a browser using streamed WebGL commands"
|
|
depends_dev="
|
|
$pkgname
|
|
qt5-qtwebsockets-dev
|
|
"
|
|
makedepends="$depends_dev
|
|
qt5-qtbase-dev
|
|
"
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
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
|
|
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="
|
|
46b150e84c6ed4d5a9f90c5767df0da1ce509003018a7dd0e980feababe212129831b2e3494f6c6bf51a9b6b64c045394724623ffdc9b9d67c8869687229950b qtwebglplugin-64beacdd2d0f6fe0796bd291c9ab33f206a333c3.tar.xz
|
|
"
|