build: linux deploy use CMAKE_INSTALL_DATADIR in place of hard coded share

This commit is contained in:
sithlord48
2025-11-08 12:10:45 -05:00
committed by Chris Rizzitello
parent 1556908ef6
commit 8e754b2ce2

View File

@ -8,22 +8,22 @@ set(MY_DIR ${CMAKE_CURRENT_LIST_DIR})
# Install our desktop file
install(
FILES ${MY_DIR}/${CMAKE_PROJECT_REV_FQDN}.desktop
DESTINATION share/applications
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications
)
# Install our icon
install(FILES ${MY_DIR}/org.deskflow.deskflow.png DESTINATION share/icons/hicolor/512x512/apps/)
install(FILES ${MY_DIR}/org.deskflow.deskflow.png DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/512x512/apps/)
# Install our symbolic icon
install(
FILES ${CMAKE_SOURCE_DIR}/src/apps/res/icons/deskflow-light/apps/64/org.deskflow.deskflow-symbolic.svg
DESTINATION share/icons/hicolor/symbolic/apps/
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/symbolic/apps/
)
# Install our metainfo
install(
FILES ${MY_DIR}/${CMAKE_PROJECT_REV_FQDN}.metainfo.xml
DESTINATION share/metainfo/
DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo/
)
# Prepare PKGBUILD for Arch Linux
@ -33,7 +33,6 @@ configure_file(
@ONLY
)
set(CPACK_DEBIAN_PACKAGE_SECTION "utils")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_RPM_PACKAGE_LICENSE "GPLv2")