1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 10:15:12 +03:00
aports/community/qt5-qtwebglplugin/APKBUILD

67 lines
1.9 KiB
Text

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qt5-qtwebglplugin
pkgver=5.15.8_git20221110
pkgrel=0
_commit="655be6c5406f8ba42acaca363fc55d78a6198733"
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"
builddir="$srcdir/qtwebglplugin-$_commit"
case $pkgver in
*_beta*|*_rc*) _rel=development_releases;;
*) _rel=official_releases;;
esac
source="https://dev.alpinelinux.org/archive/qt/qtwebglplugin-$_commit.tar.xz"
_disturl="dev.alpinelinux.org:/archive/qt/"
snapshot() {
clean
deps
mkdir -p "$srcdir" && cd "$srcdir"
git clone https://invent.kde.org/qt/qt/qtwebglplugin.git && cd qtwebglplugin
git archive --format tar --prefix=qtwebglplugin-$_commit/ $_commit | xz -T0 -9 -vv - > $SRCDEST/qtwebglplugin-$_commit.tar.xz
rsync --progress -La $SRCDEST/qtwebglplugin-$_commit.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="
901b9f163644596a4bc4966ed69fae043fcdd842ac3e0e2a921766847ffab87d9bbeb6a1919b3dc5b44a40a8aba1549b63a434f0d18b990ce2e0f24ebca5e928 qtwebglplugin-655be6c5406f8ba42acaca363fc55d78a6198733.tar.xz
"