qtcreator: get rid of broken MIME database files
This commit is contained in:
parent
4d453b05ae
commit
678687ca05
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'qtcreator'
|
# Template file for 'qtcreator'
|
||||||
pkgname=qtcreator
|
pkgname=qtcreator
|
||||||
version=4.4.0
|
version=4.4.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc=qt-creator-opensource-src-${version}
|
wrksrc=qt-creator-opensource-src-${version}
|
||||||
build_style=qmake
|
build_style=qmake
|
||||||
make_install_args="INSTALL_ROOT=\${DESTDIR}/usr"
|
make_install_args="INSTALL_ROOT=\${DESTDIR}/usr"
|
||||||
|
@ -28,21 +28,11 @@ do_build() {
|
||||||
# ... and eventually make using the main Makefile
|
# ... and eventually make using the main Makefile
|
||||||
make ${makejobs} ${make_build_args}
|
make ${makejobs} ${make_build_args}
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# Install the desktop file
|
# Install the desktop file
|
||||||
vinstall ${FILESDIR}/qtcreator.desktop \
|
vinstall ${FILESDIR}/qtcreator.desktop \
|
||||||
644 usr/share/applications
|
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() {
|
qtcreator-full_package() {
|
||||||
|
|
Loading…
Reference in New Issue