wok-next annotate qt4/receipt @ rev 20567
xfe: update receipt; qt5: undo `fix math`
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Apr 11 01:07:35 2018 +0300 (2018-04-11) |
parents | c0521c689857 |
children | f48456621a9d |
rev | line source |
---|---|
pascal@19953 | 1 # SliTaz package receipt v2. |
jozee@5369 | 2 |
jozee@5369 | 3 PACKAGE="qt4" |
jozee@5369 | 4 SOURCE="qt-everywhere-opensource-src" |
psychomaniak@16903 | 5 VERSION="4.8.6" |
jozee@5369 | 6 CATEGORY="meta" |
jozee@5369 | 7 SHORT_DESC="qt x11 toolkit" |
jozee@5369 | 8 MAINTAINER="allan316@gmail.com" |
pascal@15215 | 9 LICENSE="GPL3 LGPL2.1" |
jozee@5369 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
monghitri@13992 | 11 WEB_SITE="http://qt-project.org/" |
pascal@17869 | 12 WGET_URL="http://download.qt-project.org/archive/qt/${VERSION%.*}/$VERSION/$TARBALL" |
pascal@16678 | 13 PROVIDE="qt-x11-opensource-src Qt4" |
jozee@5369 | 14 TAGS="qt" |
jozee@5369 | 15 |
al@19821 | 16 BUILD_DEPENDS="xorg-libX11-dev dbus-dev gstreamer0-dev gst0-python-dev libmng-dev \ |
al@20502 | 17 cups-dev mysql-dev unixODBC-dev mesa-dev fontconfig-dev mesa-libegl glu \ |
al@20502 | 18 glw postgresql-dev gst0-plugins-base-dev atk-dev autoconf automake bash \ |
pankso@10647 | 19 binutils bison bzip2-dev cairo-dev coreutils expat-dev flex fontconfig-dev \ |
al@20454 | 20 freetype-dev gettext glib-dev jpeg-dev libIDL libcap-dev libpng16-dev libtool \ |
pankso@10647 | 21 libxml2-dev linux-api-headers m4 make mercurial ncurses-dev openssl-dev \ |
al@20446 | 22 pango-dev patch pcre-dev perl perl-xml-parser perl-xml-simple xorg-pixman-dev \ |
al@20513 | 23 tiff-dev xorg-dev-proto xorg-dev zip unzip gtk+-dev alsa-lib-dev \ |
al@20502 | 24 sqlite3-dev glu-dev glw-dev wayland-dev" |
pascal@19953 | 25 SPLIT="qt4 libQt3Support libQtClucene libQtCore libQtDBus libQtDeclarative \ |
pascal@19953 | 26 libQtDesigner libQtGui libQtHelp libQtMultimedia libQtNetwork libQtOpenGL \ |
pascal@19953 | 27 libQtPlugins libQtScript libQtScriptTools libQtSql libQtSvg libQtTest \ |
pascal@19953 | 28 libQtWebkit-video libQtXml qmake Qt4-dev qt4-phonon qtconfig-phonon QtDesigner \ |
pascal@19953 | 29 qt-locale-cs qt-locale-da qt-locale-de qt-locale-es qt-locale-fr qt-locale-hu \ |
pascal@19953 | 30 qt-locale-pl qt-locale-pt qt-locale-ru qt-locale-sl qt-locale-sv qt-locale-uk \ |
pascal@19953 | 31 qt-locale-zh_CN qt-locale-zh_TW" |
pankso@10647 | 32 |
jozee@5369 | 33 # Rules to configure and make the package. |
jozee@5369 | 34 compile_rules() |
jozee@5369 | 35 { |
pascal@19975 | 36 export CXXFLAGS="$CXXFLAGS -std=gnu++98" |
pascal@19975 | 37 |
monghitri@13992 | 38 #ugly fix for missing files, you probably could do better |
monghitri@13992 | 39 |
monghitri@13992 | 40 mkdir -p $src/src/3rdparty/webkit/Source/WebKit2/generated |
monghitri@13992 | 41 |
monghitri@13992 | 42 for i in $(grep MessageReceiver.cpp $stuff/missinglist); do |
monghitri@13992 | 43 fileprefix=${i%MessageReceiver.cpp} |
monghitri@13992 | 44 cppfilename=$(find $src/src/3rdparty/webkit/Source/WebKit2 -name $fileprefix.cpp) |
monghitri@13992 | 45 dname=$(dirname $cppfilename) |
monghitri@13992 | 46 /usr/bin/python $src/src/3rdparty/webkit/Source/WebKit2/Scripts/generate-message-receiver.py $dname/$fileprefix.messages.in > $src/src/3rdparty/webkit/Source/WebKit2/generated/$i |
monghitri@13992 | 47 done |
monghitri@13992 | 48 |
monghitri@13992 | 49 for i in $(grep Messages.h $stuff/missinglist); do |
monghitri@13992 | 50 fileprefix=${i%Messages.h} |
monghitri@13992 | 51 hfilename=$(find $src/src/3rdparty/webkit/Source/WebKit2 -name $fileprefix.h) |
monghitri@13992 | 52 dname=$(dirname $hfilename) |
monghitri@13992 | 53 /usr/bin/python $src/src/3rdparty/webkit/Source/WebKit2/Scripts/generate-messages-header.py $dname/$fileprefix.messages.in > $src/src/3rdparty/webkit/Source/WebKit2/generated/$i |
monghitri@13992 | 54 done |
monghitri@13992 | 55 |
pascal@19953 | 56 ./configure \ |
monghitri@13992 | 57 -silent \ |
pankso@5509 | 58 -prefix /usr \ |
pankso@5509 | 59 -confirm-license -opensource \ |
pankso@5509 | 60 -sysconfdir /etc \ |
pankso@5509 | 61 -plugindir /usr/lib/qt/plugins \ |
slaxemulator@10082 | 62 -importdir /usr/lib/qt/imports \ |
pankso@5509 | 63 -translationdir /usr/share/qt/translations \ |
pankso@5509 | 64 -datadir /usr/share/qt \ |
pankso@5509 | 65 -docdir /usr/share/doc/qt \ |
pankso@5509 | 66 -examplesdir /usr/share/doc/qt/examples \ |
pankso@5509 | 67 -demosdir /usr/share/doc/qt/demos \ |
monghitri@13992 | 68 -release \ |
pankso@5509 | 69 -nomake demos \ |
pankso@5509 | 70 -nomake examples \ |
pankso@5509 | 71 -nomake docs \ |
slaxemulator@6976 | 72 -system-zlib \ |
slaxemulator@6976 | 73 -system-libtiff \ |
slaxemulator@6976 | 74 -system-libpng \ |
slaxemulator@6976 | 75 -system-libmng \ |
slaxemulator@6976 | 76 -system-libjpeg \ |
slaxemulator@6976 | 77 -system-sqlite \ |
slaxemulator@9182 | 78 -scripttools \ |
slaxemulator@6976 | 79 -glib \ |
pankso@5509 | 80 -phonon \ |
pankso@5509 | 81 -optimized-qmake \ |
pankso@5509 | 82 -opengl \ |
pascal@13931 | 83 -gtkstyle \ |
pascal@13934 | 84 2>&1 | sed 's/such file or directory/file/' && |
gokhlayeh@11574 | 85 make $MAKEFLAGS && |
slaxemulator@10082 | 86 make INSTALL_ROOT=$DESTDIR install |
jozee@5369 | 87 } |
jozee@5369 | 88 |
pascal@19953 | 89 # Rules to gen a SliTaz locale qt package. |
pascal@19953 | 90 genpkg_locale() |
pascal@19953 | 91 { |
pascal@19953 | 92 LICENSE="GPL3 LGPL2.1 FDL other" |
pascal@19953 | 93 usqt=/usr/share/qt/translations |
pascal@19953 | 94 mkdir -p $fs$usqt |
pascal@19953 | 95 |
pascal@19953 | 96 for qm in $(find $install$usqt -name "*_$LOCALE.qm"); do |
pascal@19953 | 97 cp -a $install$usqt/${qm##*/} $fs$usqt |
pascal@19953 | 98 done |
pascal@19953 | 99 |
pascal@19953 | 100 if [ x$BOOK != x ]; then |
pascal@19953 | 101 usqp=/usr/share/qt/phrasebooks |
pascal@19953 | 102 mkdir -p $fs$usqp |
pascal@19953 | 103 cp -a $install$usqp/$BOOK.qph $fs$usqp |
pascal@19953 | 104 fi |
pascal@19953 | 105 } |
pascal@19953 | 106 |
jozee@5369 | 107 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@5369 | 108 genpkg_rules() |
jozee@5369 | 109 { |
pascal@19953 | 110 case $PACKAGE in |
pascal@19953 | 111 qt4) |
pascal@19953 | 112 DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg \ |
pascal@19953 | 113 libQtXml libQtDesigner libQtScript libQt3Support \ |
pascal@19953 | 114 libQtClucene libQtDBus libQtHelp libQtOpenGL libQtSql \ |
pascal@19953 | 115 libQtWebkit gstreamer0" |
pascal@19953 | 116 # dummy tree to avoid 'tazwok cmp --cook' building loop |
pascal@19953 | 117 mkdir $fs/etc |
pascal@19953 | 118 ;; |
pascal@19953 | 119 libQt3Support) |
pascal@19953 | 120 CAT="development|Qt3 support Library" |
pascal@19953 | 121 DEPENDS="libQtGui libQtSql libQtXml" |
pascal@19953 | 122 mkdir -p $fs/usr/lib |
pascal@19953 | 123 cp -a $install/usr/lib/libQt3Support.so* $fs/usr/lib |
pascal@19953 | 124 ;; |
pascal@19953 | 125 libQtClucene) |
pascal@19953 | 126 CAT="development|Qt clucene Library" |
pascal@19953 | 127 DEPENDS="libQtCore" |
pascal@19953 | 128 mkdir -p $fs/usr/lib |
pascal@19953 | 129 cp -a $install/usr/lib/libQtCLucene.so* $fs/usr/lib |
pascal@19953 | 130 ;; |
pascal@19953 | 131 libQtCore) |
pascal@19954 | 132 CAT="development|Qt Core files" |
pascal@19953 | 133 DEPENDS="glib zlib gcc-lib-base" |
pascal@19953 | 134 mkdir -p $fs/usr/lib |
pascal@19953 | 135 cp -a $install/usr/lib/libQtCore.so* $fs/usr/lib |
pascal@19953 | 136 ;; |
pascal@19953 | 137 libQtDBus) |
pascal@19953 | 138 CAT="development|Qt Dbus Library" |
pascal@19953 | 139 DEPENDS="libQtXml" |
pascal@19953 | 140 mkdir -p $fs/usr/lib $fs/usr/bin |
pascal@19953 | 141 cp -a $install/usr/lib/libQtDBus.so* $fs/usr/lib |
pascal@19953 | 142 cp -a $install/usr/bin/qdbus $fs/usr/bin |
pascal@19953 | 143 ;; |
pascal@19953 | 144 libQtDeclarative) |
pascal@19953 | 145 CAT="development|Qt Declarative Library" |
pascal@19953 | 146 DEPENDS="libQtCore libQtNetwork libQtGui libQtXml libQtSql \ |
pascal@19953 | 147 libQtSvg libQtScript" |
pascal@19953 | 148 mkdir -p $fs/usr/lib |
pascal@19953 | 149 cp -a $src/lib/libQtDeclarative.so* $fs/usr/lib |
pascal@19953 | 150 ;; |
pascal@19953 | 151 libQtDesigner) |
pascal@19953 | 152 CAT="development|Qt Designer" |
pascal@19953 | 153 DEPENDS="libQtCore libQtGui libQtScript libQtXml" |
pascal@19953 | 154 mkdir -p $fs/usr/lib |
pascal@19953 | 155 cp -a $install/usr/lib/libQtDesigner*.so* $fs/usr/lib |
pascal@19953 | 156 ;; |
pascal@19953 | 157 libQtGui) |
pascal@19953 | 158 CAT="development|Qt Gui Library" |
pascal@19953 | 159 DEPENDS="libQtCore expat fontconfig freetype xorg-libICE \ |
pascal@19953 | 160 xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp \ |
pascal@19953 | 161 xorg-libXext xorg-libXi xorg-libXrandr xorg-libXrender \ |
al@20454 | 162 libpng16" |
pascal@19953 | 163 mkdir -p $fs/usr/lib |
pascal@19953 | 164 cp -a $install/usr/lib/libQtGui.so* $fs/usr/lib |
pascal@19953 | 165 |
pascal@19953 | 166 mkdir -p $fs/usr/lib/qt/plugins/imageformats |
pascal@19953 | 167 cp -a $install/usr/lib/qt/plugins/imageformats/libqjpeg.so $fs/usr/lib/qt/plugins/imageformats |
pascal@19953 | 168 cp -a $install/usr/lib/qt/plugins/imageformats/libqgif.so $fs/usr/lib/qt/plugins/imageformats |
pascal@19953 | 169 |
pascal@19953 | 170 mkdir -p $fs/etc/skel/.config |
pascal@19953 | 171 cp -a $stuff/Trolltech.conf $fs/etc/skel/.config |
pascal@19953 | 172 ;; |
pascal@19953 | 173 libQtHelp) |
pascal@19953 | 174 CAT="development|Qt help Library" |
pascal@19953 | 175 DEPENDS="libQtGui libQtClucene libQtSql libQtXml" |
pascal@19953 | 176 mkdir -p $fs/usr/lib |
pascal@19953 | 177 cp -a $install/usr/lib/libQtHelp.so* $fs/usr/lib |
pascal@19953 | 178 ;; |
pascal@19953 | 179 libQtMultimedia) |
pascal@19953 | 180 CAT="development|Qt Multimedia Library" |
pascal@19953 | 181 DEPENDS="libQtGui alsa-lib" |
pascal@19953 | 182 mkdir -p $fs/usr/lib |
pascal@19953 | 183 cp -a $install/usr/lib/libQtMultimedia.so* $fs/usr/lib |
pascal@19953 | 184 ;; |
pascal@19953 | 185 libQtNetwork) |
pascal@19953 | 186 CAT="development|Qt Network Library" |
pascal@19953 | 187 DEPENDS="libQtCore" |
pascal@19953 | 188 mkdir -p $fs/usr/lib |
pascal@19953 | 189 cp -a $install/usr/lib/libQtNetwork.so* $fs/usr/lib |
pascal@19953 | 190 ;; |
pascal@19953 | 191 libQtOpenGL) |
pascal@19953 | 192 CAT="development|Qt OpenGL Library" |
al@20502 | 193 DEPENDS="libQtGui mesa glu xorg-libXxf86vm xorg-libXdamage libdrm" |
pascal@19953 | 194 mkdir -p $fs/usr/lib |
pascal@19953 | 195 cp -a $install/usr/lib/libQtOpenGL.so* $fs/usr/lib |
pascal@19953 | 196 ;; |
pascal@19953 | 197 libQtPlugins) |
pascal@19953 | 198 CAT="development|qt x11 toolkit plugins" |
pascal@19953 | 199 DEPENDS="libQtSql libQt3Support libQtGui libQtCore libQtXml \ |
pascal@19953 | 200 libQtNetwork libQtDBus libQtWebkit libQtScript \ |
pascal@19953 | 201 libQtDesigner libQtOpenGL libQtScriptTools libQtSvg \ |
pascal@19953 | 202 libQtTest libQtHelp" |
pascal@19953 | 203 mkdir -p $fs/usr/lib/qt |
pascal@19953 | 204 cp -a $install/usr/lib/qt/plugins $fs/usr/lib/qt |
pascal@19953 | 205 find $fs -regex \ |
pascal@19953 | 206 '.*\(gstreamer\|libqsqlite\|qjpeg\|bqgif\|libqsvg\).*' -delete |
pascal@19953 | 207 ;; |
pascal@19953 | 208 libQtScript) |
pascal@19953 | 209 CAT="development|Qt Script Lib" |
pascal@19953 | 210 DEPENDS="libQtCore" |
pascal@19953 | 211 mkdir -p $fs/usr/lib |
pascal@19953 | 212 cp -a $install/usr/lib/libQtScript.so* $fs/usr/lib |
pascal@19953 | 213 ;; |
pascal@19953 | 214 libQtScriptTools) |
pascal@19953 | 215 CAT="development|Qt ScriptTools Lib" |
pascal@19953 | 216 DEPENDS="libQtScript libQtGui" |
pascal@19953 | 217 mkdir -p $fs/usr/lib |
pascal@19953 | 218 cp -a $install/usr/lib/libQtScriptTools.so* $fs/usr/lib |
pascal@19953 | 219 ;; |
pascal@19953 | 220 libQtSql) |
pascal@19953 | 221 CAT="development|Qt sql Library" |
pascal@20098 | 222 DEPENDS="libQtCore sqlite3" |
pascal@19953 | 223 mkdir -p $fs/usr/lib |
pascal@19953 | 224 cp -a $install/usr/lib/libQtSql.so* $fs/usr/lib |
pascal@19953 | 225 |
pascal@19953 | 226 #file from libQtPlugins usable with sqlite preinstalled in core slitaz |
pascal@19953 | 227 mkdir -p $fs/usr/lib/qt/plugins/sqldrivers |
pascal@19953 | 228 cp -a $install/usr/lib/qt/plugins/sqldrivers/libqsqlite.so $fs/usr/lib/qt/plugins/sqldrivers/libqsqlite.so |
pascal@19953 | 229 ;; |
pascal@19953 | 230 libQtSvg) |
pascal@19953 | 231 CAT="development|Qt Svg Library" |
al@20454 | 232 DEPENDS="libQtCore libQtGui libQtXml libpng16" |
pascal@19953 | 233 mkdir -p $fs/usr/lib/qt/plugins/imageformats $fs/usr/lib/qt/plugins/iconengines |
pascal@19953 | 234 cp -a $install/usr/lib/libQtSvg.so* $fs/usr/lib |
pascal@19953 | 235 cp -a $install/usr/lib/qt/plugins/imageformats/libqsvg.so $fs/*/*/*/*/imageformats |
pascal@19953 | 236 cp -a $install/usr/lib/qt/plugins/iconengines/libqsvgicon.so $fs/*/*/*/*/iconengines |
pascal@19953 | 237 ;; |
pascal@19953 | 238 libQtTest) |
pascal@19953 | 239 CAT="development|Qt Test library" |
pascal@19953 | 240 DEPENDS="libQtCore" |
pascal@19953 | 241 mkdir -p $fs/usr/lib |
pascal@19953 | 242 cp -a $install/usr/lib/libQtTest.so* $fs/usr/lib |
pascal@19953 | 243 ;; |
pascal@19953 | 244 libQtWebkit-video) |
pascal@19953 | 245 CAT="multimedia|Web browser engine for Qt (with gstreamer HTML5 audio video support)" |
al@20454 | 246 DEPENDS="libQtCore libQtGui libQtNetwork libpng16 \ |
pascal@19953 | 247 gst0-plugins-base gst0-plugins-good gst0-ffmpeg" |
pascal@19953 | 248 SUGGESTED="gst0-plugins-bad gst0-plugins-ugly" |
pascal@19953 | 249 mkdir -p $fs/usr/lib |
pascal@19953 | 250 cp -a $install/usr/lib/libQtWebKit.so* $fs/usr/lib |
pascal@19953 | 251 ;; |
pascal@19953 | 252 libQtXml) |
pascal@19953 | 253 CAT="development|Qt Xml library" |
pascal@19953 | 254 DEPENDS="libQtNetwork" |
pascal@19953 | 255 mkdir -p $fs/usr/lib |
pascal@19953 | 256 cp -a $install/usr/lib/libQtXml.so* $fs/usr/lib |
pascal@19953 | 257 cp -a $install/usr/lib/libQtXmlPatterns.so* $fs/usr/lib |
pascal@19953 | 258 ;; |
pascal@19953 | 259 qmake) |
pascal@19953 | 260 CAT="development|Qt make" |
pascal@19953 | 261 TAGS="qt" |
pascal@19953 | 262 DEPENDS="zlib gcc-lib-base" |
pascal@19953 | 263 mkdir -p $fs/usr/bin |
pascal@19953 | 264 cp -a $install/usr/bin/qmake $fs/usr/bin |
pascal@19953 | 265 cp -a $install/usr/bin/moc $fs/usr/bin |
pascal@19953 | 266 cp -a $install/usr/bin/uic $fs/usr/bin |
pascal@19953 | 267 ;; |
pascal@19953 | 268 Qt4-dev) |
pascal@19953 | 269 CAT="development|qt x11 toolkit" |
pascal@19953 | 270 SUGGESTED="libmng nvidia" |
al@20502 | 271 DEPENDS="QtDesigner jpeg tiff libpng16 mesa glu \ |
pascal@19953 | 272 freetds libmysqlclient libpostgresqlclient libunixODBC \ |
al@20450 | 273 xorg-xcb-util libQt3Support libQtClucene libQtPlugins \ |
pascal@19953 | 274 libQtDBus libQtHelp libQtOpenGL libQtScript libQtSql \ |
pascal@19953 | 275 libQtScriptTools libQtWebkit libQtTest qtconfig \ |
pascal@19953 | 276 gcc-lib-base" |
pascal@19953 | 277 mkdir -p $fs/usr/lib $fs/usr/include/private |
pascal@19953 | 278 cp -a $install/usr/include $fs/usr |
pascal@19953 | 279 cp -a $install/usr/lib/pkgconfig $fs/usr/lib |
pascal@19953 | 280 cp -a $install/usr/lib/*.*a $fs/usr/lib/ |
pascal@19953 | 281 cp -a $install/usr/lib/*.prl $fs/usr/lib/ |
pascal@19953 | 282 cp -a $install/usr/share $fs/usr |
pascal@19953 | 283 cp -a $install/usr/lib/qt $fs/usr/lib |
pascal@19953 | 284 |
pascal@19953 | 285 #private qt includes |
pascal@19953 | 286 for i in $src/include/*/private/*; do cp $src/$(cat $i | sed 's/^#include "[./]*\([a-z].*\)"$/\1/') $fs/usr/include/private; done |
pascal@19953 | 287 |
pascal@19953 | 288 # all qt plugins are in libQtPlugins |
pascal@19953 | 289 rm -rf $fs/usr/lib/qt/plugins |
pascal@19953 | 290 # all bin and remove QT applications designer, qmake, assistant, linguist: provide seperate packages |
pascal@19953 | 291 cp -a $install/usr/bin $fs/usr |
pascal@19953 | 292 rm $fs/usr/bin/qmake |
pascal@19953 | 293 rm $fs/usr/bin/designer |
pascal@19953 | 294 # Linguist and assistant are now part of QTDesigner packages |
pascal@19953 | 295 rm $fs/usr/bin/linguist |
pascal@19953 | 296 rm $fs/usr/bin/assistant |
pascal@19953 | 297 # qtconfig packaged now in separate package |
pascal@19953 | 298 rm $fs/usr/bin/qtconfig |
pascal@19953 | 299 rm $fs/usr/share/qt/translations/qtconfig*.qm |
pascal@19953 | 300 ;; |
pascal@19953 | 301 qt4-phonon) |
pascal@19953 | 302 CAT="multimedia|Qt phonon library" |
pascal@19953 | 303 DEPENDS="glib zlib gcc-lib-base" |
pascal@19953 | 304 SUGGESTED="gst0-plugins-good" |
pascal@19953 | 305 mkdir -p $fs/usr/lib |
pascal@19953 | 306 cp -a $install/usr/lib/libphonon.so* $fs/usr/lib |
pascal@19953 | 307 mkdir -p $fs/usr/lib/qt/plugins/phonon_backend |
pascal@19953 | 308 cp -a $install/usr/lib/qt/plugins/phonon_backend/libphonon_gstreamer.so $fs/usr/lib/qt/plugins/phonon_backend/libphonon_gstreamer.so |
pascal@19953 | 309 ;; |
pascal@19953 | 310 qtconfig-phonon) |
pascal@19953 | 311 CAT="x-window|Qtconfig is a tool that allows users to customize the default settings for Qt applications." |
pascal@19953 | 312 DEPENDS="gst0-plugins-base libQt3Support libQtNetwork libQtDBus qt4-phonon" |
pascal@19953 | 313 mkdir -p $fs/usr/bin $fs/usr/share/qt/translations |
pascal@19953 | 314 cp -a $install/usr/bin/qtconfig $fs/usr/bin |
pascal@19953 | 315 cp -a $install/usr/share/qt/translations/qtconfig*.qm $fs/usr/share/qt/translations |
pascal@19953 | 316 ;; |
pascal@19953 | 317 QtDesigner) |
pascal@19953 | 318 CAT="development|Qt Designer" |
pascal@19953 | 319 TAGS="qt" |
pascal@19953 | 320 DEPENDS="libQtCore libQtGui libQtNetwork libQtSvg libQtXml \ |
pascal@19953 | 321 libQtDesigner libQtScript expat fontconfig freetype \ |
pascal@19953 | 322 glib xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \ |
pascal@19953 | 323 xorg-libXdmcp xorg-libXext xorg-libXi xorg-libXrandr \ |
al@20454 | 324 xorg-libXrender zlib libpng16 gcc-lib-base" |
pascal@19953 | 325 mkdir -p $fs/usr/bin \ |
pascal@19953 | 326 $fs/usr/share/pixmaps \ |
pascal@19953 | 327 $fs/usr/share/applications |
pascal@19953 | 328 |
pascal@19953 | 329 cp -a $install/usr/bin/designer* $fs/usr/bin |
pascal@19953 | 330 cp -a $install/usr/bin/linguist* $fs/usr/bin |
pascal@19953 | 331 cp -a $install/usr/bin/assistant* $fs/usr/bin |
pascal@19953 | 332 |
pascal@19953 | 333 # add missing icons |
pascal@19953 | 334 cp -a $src/tools/assistant/tools/assistant/images/assistant.png $fs/usr/share/pixmaps |
pascal@19953 | 335 cp -a $src/tools/designer/src/designer/images/designer.png $fs/usr/share/pixmaps |
pascal@19953 | 336 cp -a $src/tools/linguist/linguist/images/icons/linguist-16-32.png $fs/usr/share/pixmaps |
pascal@19953 | 337 |
pascal@19953 | 338 # add .desktop files |
pascal@19953 | 339 cp -a stuff/* $fs/usr/share/applications |
pascal@19953 | 340 ;; |
pascal@19953 | 341 qt-locale-cs) |
pascal@19953 | 342 CAT="localization|Czech locale for Qt" |
pascal@19953 | 343 LICENSE="GPL3 LGPL2.1 FDL other" |
pascal@19953 | 344 LOCALE="cs" |
pascal@19953 | 345 BOOK="" |
pascal@19953 | 346 genpkg_locale |
pascal@19953 | 347 ;; |
pascal@19953 | 348 qt-locale-da) |
pascal@19953 | 349 CAT="localization|Danish locale for Qt" |
pascal@19953 | 350 LOCALE="da" |
pascal@19953 | 351 BOOK="danish" |
pascal@19953 | 352 genpkg_locale |
pascal@19953 | 353 ;; |
pascal@19953 | 354 qt-locale-de) |
pascal@19953 | 355 CAT="localization|German locale for Qt" |
pascal@19953 | 356 LOCALE="de" |
pascal@19953 | 357 BOOK="german" |
pascal@19953 | 358 genpkg_locale |
pascal@19953 | 359 ;; |
pascal@19953 | 360 qt-locale-es) |
pascal@19953 | 361 CAT="localization|Spanish locale for Qt" |
pascal@19953 | 362 LOCALE="es" |
pascal@19953 | 363 BOOK="spanish" |
pascal@19953 | 364 genpkg_locale |
pascal@19953 | 365 ;; |
pascal@19953 | 366 qt-locale-fr) |
pascal@19953 | 367 CAT="localization|French locale for Qt" |
pascal@19953 | 368 LOCALE="fr" |
pascal@19953 | 369 BOOK="french" |
pascal@19953 | 370 genpkg_locale |
pascal@19953 | 371 ;; |
pascal@19953 | 372 qt-locale-hu) |
pascal@19953 | 373 CAT="localization|Hungarian locale for Qt" |
pascal@19953 | 374 LOCALE="hu" |
pascal@19953 | 375 BOOK="hungarian" |
pascal@19953 | 376 genpkg_locale |
pascal@19953 | 377 ;; |
pascal@19953 | 378 qt-locale-pl) |
pascal@19953 | 379 CAT="localization|Polish locale for Qt" |
pascal@19953 | 380 LOCALE="pl" |
pascal@19953 | 381 BOOK="polish" |
pascal@19953 | 382 genpkg_locale |
pascal@19953 | 383 ;; |
pascal@19953 | 384 qt-locale-pt) |
pascal@19953 | 385 CAT="localization|Portuguese locale for Qt" |
pascal@19953 | 386 LOCALE="pt" |
pascal@19953 | 387 BOOK="" |
pascal@19953 | 388 genpkg_locale |
pascal@19953 | 389 ;; |
pascal@19953 | 390 qt-locale-ru) |
pascal@19953 | 391 CAT="localization|Russian locale for Qt" |
pascal@19953 | 392 LOCALE="ru" |
pascal@19953 | 393 BOOK="russian" |
pascal@19953 | 394 genpkg_locale |
pascal@19953 | 395 ;; |
pascal@19953 | 396 qt-locale-sl) |
pascal@19953 | 397 CAT="localization|Slovenian locale for Qt" |
pascal@19953 | 398 LOCALE="sl" |
pascal@19953 | 399 BOOK="" |
pascal@19953 | 400 genpkg_locale |
pascal@19953 | 401 ;; |
pascal@19953 | 402 qt-locale-sv) |
pascal@19953 | 403 CAT="localization|Swedish locale for Qt" |
pascal@19953 | 404 LOCALE="sv" |
pascal@19953 | 405 BOOK="swedish" |
pascal@19953 | 406 genpkg_locale |
pascal@19953 | 407 ;; |
pascal@19953 | 408 qt-locale-uk) |
pascal@19953 | 409 CAT="localization|Ukrainian locale for Qt" |
pascal@19953 | 410 LOCALE="uk" |
pascal@19953 | 411 BOOK="" |
pascal@19953 | 412 genpkg_locale |
pascal@19953 | 413 ;; |
pascal@19953 | 414 qt-locale-zh_CN) |
pascal@19953 | 415 CAT="localization|Chinese Simplified locale for Qt" |
pascal@19953 | 416 LOCALE="zh_CN" |
pascal@19953 | 417 BOOK="" |
pascal@19953 | 418 genpkg_locale |
pascal@19953 | 419 ;; |
pascal@19953 | 420 qt-locale-zh_TW) |
pascal@19953 | 421 CAT="localization|Chinese Traditional locale for Qt" |
pascal@19953 | 422 LOCALE="zh_TW" |
pascal@19953 | 423 BOOK="" |
pascal@19953 | 424 genpkg_locale |
pascal@19953 | 425 ;; |
pascal@19954 | 426 esac |
jozee@5369 | 427 } |
pascal@19953 | 428 |
pascal@19953 | 429 post_install_libQtGui() |
pascal@19953 | 430 { |
pascal@19953 | 431 for i in $(ls "$1/home" 2> /dev/null); do |
pascal@19953 | 432 [ -f "$1/home/$i/.config/Trolltech.conf" ] && continue |
pascal@19953 | 433 cp "$1/etc/skel/.config/Trolltech.conf" "$1/home/$i/.config" |
pascal@19953 | 434 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.config" |
pascal@19953 | 435 done |
pascal@19953 | 436 } |