mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-06 18:35:52 +00:00
add files to build packages
This commit is contained in:
2
sources/3rdparty/pdebug
vendored
2
sources/3rdparty/pdebug
vendored
Submodule sources/3rdparty/pdebug updated: 294a590bb9...75e4a0df83
@ -21,6 +21,9 @@ message (STATUS "Project: ${PROJECT_NAME}")
|
|||||||
message (STATUS "Version: ${PROJECT_VERSION}")
|
message (STATUS "Version: ${PROJECT_VERSION}")
|
||||||
message (STATUS "Build date: ${CURRENT_DATE}")
|
message (STATUS "Build date: ${CURRENT_DATE}")
|
||||||
|
|
||||||
|
option(BUILD_DEB_PACKAGE "Build deb package" OFF)
|
||||||
|
option(BUILD_RPM_PACKAGE "Build rpm package" OFF)
|
||||||
|
|
||||||
# flags
|
# flags
|
||||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||||
set (CMAKE_CXX_FLAGS "-Wall -Wno-cpp -std=c++11")
|
set (CMAKE_CXX_FLAGS "-Wall -Wno-cpp -std=c++11")
|
||||||
@ -41,3 +44,5 @@ add_subdirectory (desktop-panel)
|
|||||||
|
|
||||||
# translations
|
# translations
|
||||||
add_subdirectory (translations)
|
add_subdirectory (translations)
|
||||||
|
|
||||||
|
include(packages-recipe.cmake)
|
||||||
|
37
sources/packages-recipe.cmake
Normal file
37
sources/packages-recipe.cmake
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# generators
|
||||||
|
if(BUILD_DEB_PACKAGE)
|
||||||
|
set(CPACK_GENERATOR ${CPACK_GENERATOR} "DEB")
|
||||||
|
endif()
|
||||||
|
if(BUILD_RPM_PACKAGE)
|
||||||
|
set(CPACK_GENERATOR ${CPACK_GENERATOR} "RPM")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# build properties
|
||||||
|
set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||||
|
|
||||||
|
# general metadata
|
||||||
|
set(CPACK_PACKAGE_NAME "plasma-widget-awesome-widgets")
|
||||||
|
set(CPACK_PACKAGE_CONTACT "${PROJECT_AUTHOR}")
|
||||||
|
set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")
|
||||||
|
set(CPACK_PACKAGE_RELEASE "1")
|
||||||
|
# doesn't match to official arch :/
|
||||||
|
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_RELEASE}.${CMAKE_SYSTEM_PROCESSOR}")
|
||||||
|
|
||||||
|
# deb specific
|
||||||
|
set(CPACK_DEBIAN_PACKAGE_DEPENDS "plasma-framework")
|
||||||
|
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "Collection of minimalistic Plasmoids which look like Awesome WM widgets (ex-PyTextMonitor)")
|
||||||
|
set(CPACK_DEBIAN_PACKAGE_ENHANCES "mpd, smartmontools")
|
||||||
|
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://arcanis.name/projects/awesome-widgets")
|
||||||
|
set(CPACK_DEBIAN_PACKAGE_SECTION "KDE")
|
||||||
|
|
||||||
|
# rpm specific
|
||||||
|
set(CPACK_RPM_PACKAGE_DESCRIPTION "Collection of minimalistic Plasmoids which look like Awesome WM widgets (ex-PyTextMonitor)")
|
||||||
|
set(CPACK_RPM_PACKAGE_GROUP "User Interface/Desktops")
|
||||||
|
set(CPACK_RPM_PACKAGE_LICENSE "${PROJECT_LICENSE}")
|
||||||
|
set(CPACK_RPM_PACKAGE_REQUIRES "plasma-framework")
|
||||||
|
set(CPACK_RPM_PACKAGE_SUGGESTS "mpd, smartmontools")
|
||||||
|
set(CPACK_RPM_PACKAGE_URL "https://arcanis.name/projects/awesome-widgets")
|
||||||
|
|
||||||
|
if(BUILD_DEB_PACKAGE OR BUILD_RPM_PACKAGE)
|
||||||
|
include(CPack)
|
||||||
|
endif()
|
Reference in New Issue
Block a user