Use lowercase packagename when installing on linux/unix for easier packaging

This commit is contained in:
Felix Kauselmann
2014-08-18 23:22:41 +02:00
parent 197660b46e
commit cb3c889abf
10 changed files with 21 additions and 20 deletions

View File

@ -80,22 +80,22 @@ isEmpty(DESTDIR) {
bin.files = $$DESTDIR/YACReader
}
docs.path = $$DATADIR/doc/YACReader
docs.path = $$DATADIR/doc/yacreader
#rename docs for better packageability
docs.extra = cp ../CHANGELOG.txt ../changelog; cp ../README.txt ../README
docs.files = ../README ../changelog
icon.path = $$DATADIR/YACReader
icon.path = $$DATADIR/yacreader
icon.files = ../images/icon.png
desktop.path = $$DATADIR/applications
desktop.extra = desktop-file-edit --set-icon=$$DATADIR/YACReader/icon.png $$PWD/../YACReader.desktop
desktop.extra = desktop-file-edit --set-icon=$$DATADIR/yacreader/icon.png $$PWD/../YACReader.desktop
desktop.files = ../YACReader.desktop
#TODO: icons should be located at /usr/share/icons and have the same basename as their application
translation.path = $$DATADIR/YACReader/languages
translation.path = $$DATADIR/yacreader/languages
translation.files = ../release/languages/yacreader_*
manpage.path = $$DATADIR/man/man1

View File

@ -129,7 +129,7 @@ int main(int argc, char * argv[])
QTranslator translator;
QString sufix = QLocale::system().name();
#if defined Q_OS_UNIX && !defined Q_OS_MAC
translator.load(QString(DATADIR)+"/YACReader/languages/yacreader_"+sufix);
translator.load(QString(DATADIR)+"/yacreader/languages/yacreader_"+sufix);
#else
translator.load(QCoreApplication::applicationDirPath()+"/languages/yacreader_"+sufix);
#endif