1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/community/qt5-qtdeclarative/APKBUILD
Carlo Landmeter ae484a34fa community/qt5-qtdeclarative: fix build on riscv64
needs to link to gcc libatomic but qmake does not support LDFLAGS
2021-06-10 21:23:35 +00:00

73 lines
2.1 KiB
Text

# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qt5-qtdeclarative
pkgver=5.15.3_git20210531
pkgrel=0
_commit="0dda47d9f1a22567ad8f1266be2f0cd8a9226c7f"
pkgdesc="Qt5 - QtDeclarative component"
# Broken on armhf, upstream bug report https://bugreports.qt.io/browse/QTBUG-65246
arch="all"
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"
makedepends="
python3
qt5-qtbase-dev
vulkan-headers
"
subpackages="$pkgname-dev $pkgname-dbg"
source="https://invent.kde.org/qt/qt/qtdeclarative/-/archive/$_commit/qtdeclarative-$_commit.tar.gz
qt-musl-stackbottom.patch
link-libatomic-on-rv64.patch
"
builddir="$srcdir/qtdeclarative-$_commit"
_qt5_prefix=/usr/lib/qt5
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() {
# HACK so calls to "python" get what we want
ln -s /usr/bin/python3 python
export PATH="$(pwd):$PATH"
qmake-qt5
make
}
check() {
make check
}
package() {
make install INSTALL_ROOT="$pkgdir"
mkdir -p "$pkgdir"/usr/bin/
for i in "$pkgdir"/"$_qt5_prefix"/bin/*; do
ln -s ../lib/qt5/bin/${i##*/} "$pkgdir"/usr/bin/${i##*/}-qt5
done
# 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' {} \;
}
dev() {
default_dev
find "$pkgdir"/"$_qt5_prefix"/bin/ -type f -not -name "qmlscene" | while read -r f; do
file=$(basename $f)
amove "${_qt5_prefix#/}"/bin/$file
amove usr/bin/$file-qt5
done
}
sha512sums="
8d3aefeb7911fed45a25cad2057299bbe1a9ea5fe22bdff660de979f332bee8bc6b7a8534f8b6428a3d0f42912e57178bdb669380f88d48ab6f9e4edc26ec91d qtdeclarative-0dda47d9f1a22567ad8f1266be2f0cd8a9226c7f.tar.gz
235091cc1da51c31165a99932c95543d999c0f21b2c6b4318306b647662d420f88d7270ec21db7417fe9f8d87bfa3e5f01b6465c3542da024dd1623ef0a87681 qt-musl-stackbottom.patch
d048e8d04837ebab8439cc3d499a9a74114ae65357bad54123006d8b772b96ed907b20d781b95a6d71dd2efdb6e4e5a044a1205491df6e28d991989476bf0e55 link-libatomic-on-rv64.patch
"