blob: 2a780ae8f11d8f4268fea44713c81bcbe79e79e5 (
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qt5-qtbase
pkgver=5.1.1
pkgrel=3
pkgdesc="Qt5 - QtBase components"
url="http://qt-project.org/"
arch="all"
license="LGPLv2 with exceptions or GPLv3 with exceptions"
depends=""
depends_dev="mesa-dev libice-dev libsm-dev libx11-dev libxext-dev
openssl-dev fontconfig-dev freetype-dev glib-dev libpng-dev zlib-dev
sqlite-dev dbus-dev"
makedepends="$depends_dev
bison
cups-dev
flex
freetds-dev
gawk
gperf
gtk+2.0-dev
hicolor-icon-theme
icu-dev
libjpeg-turbo-dev
libxkbcommon-dev
libxi-dev
libxrandr-dev
libxrender-dev
libxslt-dev
libxv-dev
mysql-dev
pcre-dev
postgresql-dev
udev-dev
unixodbc-dev
xcb-util-dev
xcb-util-image-dev
xcb-util-keysyms-dev
xcb-util-wm-dev
"
install=""
subpackages="$pkgname-dev $pkgname-doc
$pkgname-sqlite $pkgname-odbc $pkgname-postgresql $pkgname-mysql
$pkgname-tds $pkgname-x11"
source="http://download.qt-project.org/official_releases/qt/${pkgver%.*}/$pkgver/submodules/qtbase-opensource-src-$pkgver.tar.xz
xcb-193.patch
"
_builddir="$srcdir"/qtbase-opensource-src-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch)
msg "Applying $i"
patch -p1 -i "$srcdir"/$i || return 1
;;
esac
done
sed -i -e "s|-O2|$CXXFLAGS|" \
-e "/^QMAKE_RPATH/s| -Wl,-rpath,||g" \
-e "/^QMAKE_LFLAGS\s/s|+=|+= $LDFLAGS|g" \
mkspecs/common/*.conf || return 1
}
build() {
cd "$_builddir"
./configure -confirm-license -opensource \
-archdatadir /usr/lib/qt5 \
-datadir /usr/share/qt5 \
-dbus-linked \
-docdir /usr/share/doc/qt5 \
-examplesdir /usr/share/doc/qt5/examples \
-glib \
-gtkstyle \
-icu \
-importdir /usr/lib/qt5/imports \
-largefile \
-no-openvg \
-no-rpath \
-no-separate-debug-info \
-no-javascript-jit \
-nomake examples \
-opengl \
-openssl-linked \
-optimized-qmake \
-plugin-sql-mysql \
-plugin-sql-odbc \
-plugin-sql-psql \
-plugin-sql-sqlite \
-plugin-sql-tds \
-plugindir /usr/lib/qt5/plugins \
-prefix /usr \
-reduce-relocations \
-silent \
-sysconfdir /etc \
-system-libjpeg \
-system-libpng \
-system-pcre \
-system-sqlite \
-system-xcb \
-system-zlib \
-translationdir /usr/share/qt5/translations \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make INSTALL_ROOT="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
_mv_files() {
local i
for i; do
mkdir -p "$subpkgdir"/${i%/*}
mv "$pkgdir"/$i "$subpkgdir"/$i || return 1
done
}
dev() {
cd "$pkgdir"
_mv_files usr/lib/qt5/mkspecs \
usr/lib/cmake \
usr/bin \
$(find usr/ -name '*.prl') \
|| return 1
default_dev
}
sqlite() {
pkgdesc="SQLite driver for Qt5's SQL classes"
cd "$pkgdir"
_mv_files usr/lib/qt5/plugins/sqldrivers/libqsqlite*
}
odbc() {
pkgdesc="ODBC driver for Qt5's SQL classes"
cd "$pkgdir"
_mv_files usr/lib/qt5/plugins/sqldrivers/libqsqlodbc*
}
postgresql() {
pkgdesc="PostgreSQL driver for Qt5's SQL classes"
cd "$pkgdir"
_mv_files usr/lib/qt5/plugins/sqldrivers/libqsqlpsql*
}
mysql() {
pkgdesc="MySQL driver for Qt5's SQL classes"
cd "$pkgdir"
_mv_files usr/lib/qt5/plugins/sqldrivers/libqsqlmysql*
}
tds() {
pkgdesc="TDS driver for Qt5's SQL classes"
cd "$pkgdir"
_mv_files usr/lib/qt5/plugins/sqldrivers/libqsqltds*
}
x11() {
pkgdesc="Qt5 GUI-related libraries"
depends="hicolor-icon-theme"
cd "$pkgdir"
_mv_files \
usr/lib/libQt5Gui.so.* \
usr/lib/libQt5Widgets.so.* \
usr/lib/libQt5OpenGL.so.* \
usr/lib/libQt5PrintSupport.so.* \
usr/lib/qt5/plugins/accessible \
usr/lib/qt5/plugins/generic \
usr/lib/qt5/plugins/image* \
usr/lib/qt5/plugins/platform* \
usr/lib/qt5/plugins/printsupport* \
|| return 1
scanelf -Rn usr/ | egrep '(libX|libQt5Gui|libGL)' && return 1
return 0
}
md5sums="955d1e4da875f3872ef3208f21a757dd qtbase-opensource-src-5.1.1.tar.xz
92d65cbeb660f0785ca882f7a4efb949 xcb-193.patch"
sha256sums="d4620e0b1aff6d2b6f4d8066e6f8258e012a8b5507af7c03b661029a1ffa75c9 qtbase-opensource-src-5.1.1.tar.xz
5cf353c03ffadc49b9def3149bccdc783b984a4a9ba37b8d77d3626093678bdb xcb-193.patch"
sha512sums="db7e25a520584b10370d898747f2cfb84ebbce3a8b9027f373cac7ab713fe199da5465df2453d04107406101ad4eff8cd82871efab40377ff44d789a424667c3 qtbase-opensource-src-5.1.1.tar.xz
99fb569bc01622380dc8517b3eb1b4a4c90b396f9262f17bb79b9e33046d4c928914bb709accd0b6f303a7dbc5f00ec3e7b2726f847a91beae4ed5f9668f0985 xcb-193.patch"
|