View Single Post
Posts: 434 | Thanked: 325 times | Joined on Sep 2009
#37
Originally Posted by krk969 View Post
yes that would do it. best thing is to check the makefiles that the .pro file generates and see if its installing your app into /opt.
the icons stay in /usr/share itself as u configured AFAIK
Just to make sure. Would this be correct?
Code:
QT += phonon
TARGET = countdowntimer
TEMPLATE = app
SOURCES += qtmain.cpp \
    settings.cpp \
    form.cpp 
HEADERS += settings.h \
    form.h 
FORMS += settings.ui \
    form.ui 
PREFIX = ../debian/countdowntimer/usr

unix {
BINDIR = $$PREFIX/opt
DATADIR =$$PREFIX/opt

DEFINES += DATADIR=\"$$DATADIR\" PKGDATADIR=\"$$PKGDATADIR\"

#MAKE INSTALL

INSTALLS += target desktop icon64

  target.path =$$BINDIR

  desktop.path = $$DATADIR/applications/hildon
  desktop.files += countdowntimer.desktop

  icon64.path = $$DATADIR/icons/hicolor/64x64/apps
  icon64.files += ../data/64x64/countdowntimer.png

}
Or would I need to remove/edit the $$PREFIX? What about DATADIR? Should that too be in /opt?