1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/qt5-qtnetworkauth/APKBUILD

57 lines
1.7 KiB
Text

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qt5-qtnetworkauth
pkgver=5.15.8_git20221110
pkgrel=0
_commit="f082a4c84c54e888b8d023ba68b7085551403425"
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="Network authentication module"
makedepends="qt5-qtbase-dev"
subpackages="$pkgname-dev $pkgname-doc"
builddir="$srcdir/qtnetworkauth-$_commit"
case $pkgver in
*_beta*|*_rc*) _rel=development_releases;;
*) _rel=official_releases;;
esac
source="https://dev.alpinelinux.org/archive/qt/qtnetworkauth-$_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/qtnetworkauth.git && cd qtnetworkauth
git archive --format tar --prefix=qtnetworkauth-$_commit/ $_commit | xz -T0 -9 -vv - > $SRCDEST/qtnetworkauth-$_commit.tar.xz
rsync --progress -La $SRCDEST/qtnetworkauth-$_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
install -d "$pkgdir"/usr/share/licenses
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/$pkgname
}
sha512sums="
3a7029c3d3f55d7b53647b7b2a551609f852b2fa46e12dca29dc7d00c3a54f84728dcd66acbda1009d83bf97f51c3991c7d8408e32a29615d002157c1ce4fb0c qtnetworkauth-f082a4c84c54e888b8d023ba68b7085551403425.tar.xz
"