mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
61 lines
1.8 KiB
Plaintext
61 lines
1.8 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=qt5-qtquickcontrols2
|
|
pkgver=5.15.9_git20230504
|
|
pkgrel=0
|
|
_module="${pkgname#qt5-}"
|
|
_pkgver=68a48018e34322edaf611639710b3edbe389e8c2
|
|
_fullname=$_module-$_pkgver
|
|
pkgdesc="Qt5 - module with set of QtQuick controls for embedded"
|
|
url="https://www.qt.io/developers/"
|
|
arch="all"
|
|
license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0"
|
|
depends="qt5-qtgraphicaleffects"
|
|
makedepends="
|
|
qt5-qtbase-dev
|
|
qt5-qtdeclarative-dev
|
|
"
|
|
subpackages="$pkgname-dev"
|
|
options="!check" # No tests
|
|
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
|
|
}
|
|
|
|
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="
|
|
b8cc12aeb9b9a60c98e2be43d0b508d1507e0d0f7abb526259f0d7b1d266bb4fdf4569e019e86cba04122764c76c5d070fe642966a7c03df5b49fae2b1162502 qtquickcontrols2-68a48018e34322edaf611639710b3edbe389e8c2.tar.xz
|
|
"
|