Changeset a4564466 for x/lib/qt5.xml
- Timestamp:
- 12/20/2020 05:46:31 PM (3 years ago)
- Branches:
- qt5new
- Children:
- dc062c9
- Parents:
- 96f41f4 (diff), 1c429ed (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
x/lib/qt5.xml
r96f41f4 ra4564466 195 195 196 196 <para> 197 Next create two utility functions, one for module building, the other 198 for switching to user <systemitem class="username">root</systemitem>: 199 </para> 200 201 <screen><userinput>module_build() { 202 # MD5_ENTRY contains the md5sum entry from the .md5 file for this module 203 md5sum -c - <<< $MD5_ENTRY 204 }</userinput></screen> 197 Next create two utility functions, one for switching to user 198 <systemitem class="username">root</systemitem>, the other for 199 module building: 200 </para> 201 202 <screen><userinput>as_root() { 203 if [ "$EUID" = 0 ]; then $* 204 elif [ -x /usr/bin/sudo ]; then sudo $* 205 else su -c \\"$*\\" 206 fi 207 } 208 209 export -f as_root 210 211 module_build() { 212 # MD5_ENTRY contains the md5sum entry from the .md5 file for this module 213 echo $MD5_ENTRY | read md5 tarball 214 215 # download 216 wget &qt5-dwonload-http;$tarball 217 md5sum -c - <<< "$MD5_ENTRY" || exit 1 218 219 packagedir=${tarball%.tar*} 220 221 tar -xf $file 222 pushd $packagedir 223 # OPTIONS contains the qmake options 224 if[ -n "$OPTIONS" ]; then 225 qmake -- $OPTIONS 226 else 227 qmake 228 fi 229 make 230 as_root make install 231 popd 232 233 rm -rf $packagedir 234 as_root /sbin/ldconfig 235 } 236 237 export -f module_build</userinput></screen> 205 238 </sect2> 206 239 207 240 <sect2 id="qt-basic"> 208 <title>Installation of Basic Modules</title> 241 <title>Basic Qt5 Modules</title> 242 243 <para role="required"> 244 The modules in this group only depend on <xref linkend="qtbase"/> 245 and a properly set <envar>QTDIR</envar> environment variable. 246 </para> 247 209 248 <para> 210 249 Install the basic modules with the following instructions: 211 250 </para> 251 252 <screen><userinput>( # start a subshell 253 set -e # exit the subshell in case of error 254 255 unset OPTIONS 256 sed -n "/Begin basic/,/End basic/p" | while read MD5_ENTRY; do 257 if [ -z "${MD5_ENTRY%\#*}" ]; then continue; fi 258 module_build 259 done 260 ) 212 261 </sect2> 213 262
Note:
See TracChangeset
for help on using the changeset viewer.