]> git.sven.stormbind.net Git - sven/vym.git/blob - debian/rules
Link the default vym hicolor icon also for the mime type
[sven/vym.git] / debian / rules
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4 export DEB_CFLAGS_MAINT_APPEND = -Wall
5 export QT_SELECT = 5
6
7 %:
8         dh $@
9
10 override_dh_auto_configure:
11         dh_auto_configure -- \
12                 -DCMAKE_INSTALL_DATAROOTDIR="share/vym" \
13                 -DCMAKE_INSTALL_MANDIR="share/man/man1" \
14                 -DCMAKE_INSTALL_DOCDIR="share/doc/vym"
15
16 override_dh_auto_install:
17         dh_auto_install --destdir=debian/vym/
18         # create a link to use the vym icon in the hicolor default theme
19         # for .vym files matched by the mime type
20         ln -s ../apps/vym.png debian/vym/usr/share/icons/hicolor/48x48/mimetypes/application-x-vym.png
21
22 # prevent compression of pdf documentation
23 override_dh_compress:
24         dh_compress -X.pdf