aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2021-02-04 15:59:14 +0100
committerBart Ribbers <bribbers@disroot.org>2021-02-04 17:26:27 +0000
commit4fbfe51a2df06bcd0a1a06251c62060e77bdfab6 (patch)
treeeaa0ed38fcb8820c682ea7269a375c9f62a18dae
parent6dc6ed61e57837cf37024e725fc993c972ab8638 (diff)
downloadaports-4fbfe51a2df06bcd0a1a06251c62060e77bdfab6.tar.gz
aports-4fbfe51a2df06bcd0a1a06251c62060e77bdfab6.tar.bz2
aports-4fbfe51a2df06bcd0a1a06251c62060e77bdfab6.tar.xz
community/qt5-qtdeclarative: move binaries to -dev
Most of the binaries of this package are only useful for development, so let's move those to -dev The only binary we want in the main package is qmlscene-qt5 as that can be used to run plain QML applications
-rw-r--r--community/qt5-qtdeclarative/APKBUILD13
1 files changed, 12 insertions, 1 deletions
diff --git a/community/qt5-qtdeclarative/APKBUILD b/community/qt5-qtdeclarative/APKBUILD
index 0ee4fcb2be..a9460c7bab 100644
--- a/community/qt5-qtdeclarative/APKBUILD
+++ b/community/qt5-qtdeclarative/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qt5-qtdeclarative
pkgver=5.15.2
-pkgrel=1
+pkgrel=2
pkgdesc="Qt5 - QtDeclarative component"
# Broken on armhf, upstream bug report https://bugreports.qt.io/browse/QTBUG-65246
arch="all"
@@ -51,5 +51,16 @@ package() {
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/$pkgname
}
+dev() {
+ default_dev
+
+ mkdir -p "$subpkgdir/$_qt5_prefix"/bin "$subpkgdir"/usr/bin
+ find "$pkgdir"/"$_qt5_prefix"/bin/ -type f -not -name "qmlscene" | while read -r f; do
+ file=$(basename $f)
+ mv "$pkgdir/$_qt5_prefix"/bin/$file "$subpkgdir/$_qt5_prefix"/bin/$file
+ mv "$pkgdir"/usr/bin/$file-qt5 "$subpkgdir"/usr/bin/$file-qt5
+ done
+}
+
sha512sums="a084e4ace0d6868668c95f1b62598a7dd0f455bfb0943ac8956802d7041436686f20c7ccdde7d6fd6c4b8173c936dd8600cf3b87bf8575f55514edfbb51111d3 qtdeclarative-everywhere-src-5.15.2.tar.xz
235091cc1da51c31165a99932c95543d999c0f21b2c6b4318306b647662d420f88d7270ec21db7417fe9f8d87bfa3e5f01b6465c3542da024dd1623ef0a87681 qt-musl-stackbottom.patch"