mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
93 lines
2.6 KiB
Plaintext
93 lines
2.6 KiB
Plaintext
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=qt5-qtdeclarative
|
|
pkgver=5.15.9_git20230504
|
|
pkgrel=0
|
|
_module="${pkgname#qt5-}"
|
|
_pkgver=c21cad9f47eb7baa40341ec9b70dadb86f65a179
|
|
_fullname=$_module-$_pkgver
|
|
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-dbg $pkgname-dev"
|
|
source="https://dev.alpinelinux.org/archive/qt/$_fullname.tar.xz
|
|
qt-musl-stackbottom.patch
|
|
link-libatomic-on-rv64.patch
|
|
"
|
|
|
|
_qt5_prefix=/usr/lib/qt5
|
|
|
|
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() {
|
|
# Compiling with -Os generates segfaults
|
|
export CFLAGS="${CFLAGS/-Os/-O2}"
|
|
export CPPFLAGS=${CPPFLAGS/-Os/-O2}
|
|
export CXXFLAGS="${CXXFLAGS/-Os/-O2}"
|
|
|
|
# significantly reduce debug symbol size
|
|
export CFLAGS="$CFLAGS -g1"
|
|
export CXXFLAGS="$CXXFLAGS -g1"
|
|
|
|
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="
|
|
2fac631e30896cedc5a71359a8c507409eff527d23a787b633d199ba5e3551c45f817c6d9011578a5bd61282db14bb09d0b19e5e72c4a759fb6f1c280548401b qtdeclarative-c21cad9f47eb7baa40341ec9b70dadb86f65a179.tar.xz
|
|
235091cc1da51c31165a99932c95543d999c0f21b2c6b4318306b647662d420f88d7270ec21db7417fe9f8d87bfa3e5f01b6465c3542da024dd1623ef0a87681 qt-musl-stackbottom.patch
|
|
d048e8d04837ebab8439cc3d499a9a74114ae65357bad54123006d8b772b96ed907b20d781b95a6d71dd2efdb6e4e5a044a1205491df6e28d991989476bf0e55 link-libatomic-on-rv64.patch
|
|
"
|