obiwankennedy / HotShots

Screenshot and annotation software
GNU General Public License v2.0
40 stars 11 forks source link

Prefix is hardcoded, please provide --prefix= option #10

Closed fastrizwaan closed 3 years ago

fastrizwaan commented 3 years ago

For flatpak which needs /app as DESTDIR or ROOT or PREFIX=/app, I have to manually patch/sed it. Kindly create a script or an option to relocate the software. Thank you

build-commands:

   - qmake -recursive  HotShots.pro
   - sed 's/\/usr\/local/\/app/g' -i Makefile.Release
   - sed 's/\/usr\/local/\/app/g' -i Makefile.Debug
   - make install
   - mkdir -p ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps
   - install -Dm644 /app/share/pixmaps/hotshots.png 
                    /app/share/icons/hicolor/128x128/apps/io.github.HotShots.png
   - install -Dm644 io.github.HotShots.desktop /app/share/applications/

   - mkdir -p /app/share/metainfo
   - install -Dm644 io.github.HotShots.metainfo.xml /app/share/metainfo
obiwankennedy commented 3 years ago

qmake -r ../ INSTALL_PREFIX=/app should help a bit.

fastrizwaan commented 3 years ago

Yes, working thank you!