Changeset 1f87b1b
- Timestamp:
- 12/21/2020 09:42:16 PM (3 years ago)
- Branches:
- qt5new
- Children:
- b312c50
- Parents:
- dc062c9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
x/lib/qt5.xml
rdc062c9 r1f87b1b 202 202 <screen><userinput>as_root() { 203 203 if [ "$EUID" = 0 ]; then $* 204 elif [ -x /usr/bin/sudo ]; then sudo $*204 elif [ -x /usr/bin/sudo ]; then sudo -E $* 205 205 else su -c \\"$*\\" 206 206 fi … … 229 229 make 230 230 as_root make install 231 if type -p post_install; then as_root post_install; fi 231 232 popd 232 233 … … 255 256 unset OPTIONS 256 257 sed -n "/Begin basic/,/End basic/p" | while read MD5_ENTRY; do 257 if [ -z "${MD5_ENTRY%\#*}" ]; then continue; fi 258 if [ -z "${MD5_ENTRY%\#*}" ]; then continue; fi 259 case "$MD5_ENTRY" in 260 *qttools*) 261 post_install(){ 262 QT5BINDIR=$QTDIR/bin 263 264 install -v -dm755 /usr/share/pixmaps/ 265 266 install -v -Dm644 src/assistant/assistant/images/assistant-128.png \ 267 /usr/share/pixmaps/assistant-qt5.png 268 269 install -v -Dm644 src/designer/src/designer/images/designer.png \ 270 /usr/share/pixmaps/designer-qt5.png 271 272 install -v -Dm644 src/linguist/linguist/images/icons/linguist-128-32.png \ 273 /usr/share/pixmaps/linguist-qt5.png 274 275 install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \ 276 /usr/share/pixmaps/qdbusviewer-qt5.png 277 278 install -dm755 /usr/share/applications 279 280 cat > /usr/share/applications/assistant-qt5.desktop << EOF 281 [Desktop Entry] 282 Name=Qt5 Assistant 283 Comment=Shows Qt5 documentation and examples 284 Exec=$QT5BINDIR/assistant 285 Icon=assistant-qt5.png 286 Terminal=false 287 Encoding=UTF-8 288 Type=Application 289 Categories=Qt;Development;Documentation; 290 EOF 291 292 cat > /usr/share/applications/designer-qt5.desktop << EOF 293 [Desktop Entry] 294 Name=Qt5 Designer 295 GenericName=Interface Designer 296 Comment=Design GUIs for Qt5 applications 297 Exec=$QT5BINDIR/designer 298 Icon=designer-qt5.png 299 MimeType=application/x-designer; 300 Terminal=false 301 Encoding=UTF-8 302 Type=Application 303 Categories=Qt;Development; 304 EOF 305 306 cat > /usr/share/applications/linguist-qt5.desktop << EOF 307 [Desktop Entry] 308 Name=Qt5 Linguist 309 Comment=Add translations to Qt5 applications 310 Exec=$QT5BINDIR/linguist 311 Icon=linguist-qt5.png 312 MimeType=text/vnd.trolltech.linguist;application/x-linguist; 313 Terminal=false 314 Encoding=UTF-8 315 Type=Application 316 Categories=Qt;Development; 317 EOF 318 319 cat > /usr/share/applications/qdbusviewer-qt5.desktop << EOF 320 [Desktop Entry] 321 Name=Qt5 QDbusViewer 322 GenericName=D-Bus Debugger 323 Comment=Debug D-Bus applications 324 Exec=$QT5BINDIR/qdbusviewer 325 Icon=qdbusviewer-qt5.png 326 Terminal=false 327 Encoding=UTF-8 328 Type=Application 329 Categories=Qt;Development;Debugger; 330 EOF 331 } 332 export -f post_install ;; 333 334 *) unset -f post_install ;; 335 esac 336 258 337 module_build 338 259 339 done 260 340 )</userinput></screen>
Note:
See TracChangeset
for help on using the changeset viewer.