qtcreator: get rid of broken MIME database files
This commit is contained in:
		| @@ -1,7 +1,7 @@ | ||||
| # Template file for 'qtcreator' | ||||
| pkgname=qtcreator | ||||
| version=4.4.0 | ||||
| revision=1 | ||||
| revision=2 | ||||
| wrksrc=qt-creator-opensource-src-${version} | ||||
| build_style=qmake | ||||
| make_install_args="INSTALL_ROOT=\${DESTDIR}/usr" | ||||
| @@ -28,21 +28,11 @@ do_build() { | ||||
| 	# ... and eventually make using the main Makefile | ||||
| 	make ${makejobs} ${make_build_args} | ||||
| } | ||||
|  | ||||
| post_install() { | ||||
| 	# Install the desktop file | ||||
| 	vinstall ${FILESDIR}/qtcreator.desktop \ | ||||
| 		644 usr/share/applications | ||||
| 	# Extract and install shared-mime-info files for qmake and cmake projects | ||||
| 	cat src/plugins/qmakeprojectmanager/QmakeProjectManager.json | \ | ||||
| 		awk '/    "$/{found=0} {if (found) print} /"Mimetypes"/{found=1}' | \ | ||||
| 		sed -e's;^    ;;' \ | ||||
| 		> QmakeProjectManager.mimetypes.xml | ||||
| 	vinstall QmakeProjectManager.mimetypes.xml 644 usr/share/mime/packages | ||||
| 	cat src/plugins/cmakeprojectmanager/CMakeProjectManager.json | \ | ||||
| 		awk '/    "$/{found=0} {if (found) print} /"Mimetypes"/{found=1}' | \ | ||||
| 		sed -e's;^    ;;' \ | ||||
| 		> CMakeProjectManager.mimetypes.xml | ||||
| 	vinstall CMakeProjectManager.mimetypes.xml 644 usr/share/mime/packages | ||||
| } | ||||
|  | ||||
| qtcreator-full_package() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jürgen Buchmüller
					Jürgen Buchmüller