Use common rules for kworldclock themes.

Install SVG and SVGZ wallpapers.

This addresses the shortcomings of the recent commit.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit a37036141b)
feature/Phase2_style
Slávek Banko 4 years ago
parent 06d1578a87
commit 1463c34d97
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -3,15 +3,33 @@
# (C) 2010 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# (C) 2020 Slávek Banko
# slavek.banko (AT) axis.cz
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( alt )
add_subdirectory( bio )
add_subdirectory( caida )
add_subdirectory( caida_bw )
add_subdirectory( mggd )
add_subdirectory( rainfall )
file( GLOB _themes RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
list( SORT _themes )
foreach( _theme IN LISTS _themes )
if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_theme} AND
EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_theme}/${_theme}.desktop )
file( GLOB _map_images RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${_theme}/*.jpg )
list( SORT _map_images )
install(
FILES ${_map_images}
DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/${_theme}"
)
tde_create_translated_desktop(
SOURCE ${_theme}/${_theme}.desktop
DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/${_theme}"
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldclock-themes
)
endif()
endforeach()

@ -1,23 +0,0 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
1200.jpg
200.jpg
400.jpg
800.jpg
DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/alt" )
tde_create_translated_desktop(
SOURCE alt.desktop
DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/alt"
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldclock-themes
)

@ -1,23 +0,0 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
1600.jpg
200.jpg
400.jpg
800.jpg
DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/bio" )
tde_create_translated_desktop(
SOURCE bio.desktop
DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/alt"
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldclock-themes
)

@ -1,23 +0,0 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
1280.jpg
200.jpg
400.jpg
800.jpg
DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/caida" )
tde_create_translated_desktop(
SOURCE caida.desktop
DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/alt"
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldclock-themes
)

@ -1,23 +0,0 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
1280.jpg
200.jpg
400.jpg
800.jpg
DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/caida_bw" )
tde_create_translated_desktop(
SOURCE caida_bw.desktop
DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/alt"
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldclock-themes
)

@ -1,23 +0,0 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
1440.jpg
200.jpg
400.jpg
800.jpg
DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/mggd" )
tde_create_translated_desktop(
SOURCE mggd.desktop
DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/alt"
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldclock-themes
)

@ -1,23 +0,0 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
1600.jpg
200.jpg
400.jpg
800.jpg
DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/rainfall" )
tde_create_translated_desktop(
SOURCE rainfall.desktop
DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/alt"
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldclock-themes
)

@ -12,7 +12,7 @@
#
#################################################
file( GLOB _wallpapers RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.jpg *.png )
file( GLOB _wallpapers RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.jpg *.png *.svg *.svgz )
list( SORT _wallpapers)
foreach( _wallpaper IN LISTS _wallpapers )

Loading…
Cancel
Save