blob: f49927d7f28d775ace26e3524a6cc8a15cee113d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
pkgname=qt5-tools
_qtver=5.10.1
pkgver=${_qtver/-/}
pkgrel=1
arch=('x86_64')
url='http://qt-project.org/'
license=('GPL3' 'LGPL3' 'FDL' 'custom')
pkgdesc='A cross-platform application and UI framework (Development Tools, QtHelp)'
depends=('qt5-base' 'hicolor-icon-theme')
makedepends=('qt5-declarative' 'qt5-webkit' 'vulkan-headers')
optdepends=('qt5-doc: documentation' 'qt5-webkit: for Qt Assistant')
groups=('qt' 'qt5')
conflicts=('qtchooser')
_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz"
{assistant,designer,linguist,qdbusviewer}.desktop)
sha256sums=('f1ea441e5fe138756e6de3b60ab7d8d3051799eabe85a9408c995dfd4d048a53'
'8092d6d846e39632107b14726fa112862d800e929ef10f05f2a284dbda9b53c4'
'366e18ba400068df40d26a3c944d6bd4925bf22c32f171b837a3f4e387eff019'
'db1ad1d27ce73820b8d50291618b6f817292f15f55107274064b9ae99201069a'
'cd94367e35f99ab85277aa95985bbde292a9cc82db2c04c4efdaed5799aa16db')
prepare() {
mkdir -p build
}
build() {
cd build
qmake ../${_pkgfqn}
make
}
package() {
cd build
make INSTALL_ROOT="${pkgdir}" install
cd ../${_pkgfqn}
# install missing icons and desktop files
for icon in src/linguist/linguist/images/icons/linguist-*-32.png ; do
size=$(echo $(basename ${icon}) | cut -d- -f2)
install -p -D -m644 ${icon} \
"${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/linguist.png"
done
install -D -m644 src/assistant/assistant/images/assistant.png \
"${pkgdir}/usr/share/icons/hicolor/32x32/apps/assistant.png"
install -D -m644 src/assistant/assistant/images/assistant-128.png \
"${pkgdir}/usr/share/icons/hicolor/128x128/apps/assistant.png"
install -D -m644 src/designer/src/designer/images/designer.png \
"${pkgdir}/usr/share/icons/hicolor/128x128/apps/QtProject-designer.png"
install -D -m644 src/qdbus/qdbusviewer/images/qdbusviewer.png \
"${pkgdir}/usr/share/icons/hicolor/32x32/apps/qdbusviewer.png"
install -D -m644 src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
"${pkgdir}/usr/share/icons/hicolor/128x128/apps/qdbusviewer.png"
install -d "${pkgdir}/usr/share/applications"
install -m644 "${srcdir}"/{linguist,designer,assistant,qdbusviewer}.desktop \
"${pkgdir}/usr/share/applications/"
# Symlinks for backwards compatibility
for b in "${pkgdir}"/usr/bin/*; do
ln -s /usr/bin/$(basename $b) "${pkgdir}"/usr/bin/$(basename $b)-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' {} \;
install -d "$pkgdir"/usr/share/licenses
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
}
|