add build option to enable/install update desktop entry

This commit is contained in:
Chris Cromer 2017-10-29 14:28:26 -03:00
parent 47d7184638
commit 282043e753
26 changed files with 235 additions and 7 deletions

View File

@ -1,7 +1,8 @@
#!/bin/bash #!/bin/bash
ENABLE_VARS="kde-tray|ON|KDE_TRAY" ENABLE_VARS="kde-tray|ON|KDE_TRAY update-desktop|ON|ENABLE_UPDATE_ICON"
ENABLE_KDE_TRAY_DOC="build with kde tray and appindicator instead of gtk3 tray" ENABLE_KDE_TRAY_DOC="build with kde tray and appindicator instead of gtk3 tray"
ENABLE_ENABLE_UPDATE_ICON_DOC="install the update desktop entry"
DISABLE_VARS="aur|ON|DISABLE_AUR icon-update|OFF|ICON_UPDATE" DISABLE_VARS="aur|ON|DISABLE_AUR icon-update|OFF|ICON_UPDATE"
DISABLE_DISABLE_AUR_DOC="disable the AUR in pamac" DISABLE_DISABLE_AUR_DOC="disable the AUR in pamac"
DISABLE_ICON_UPDATE_DOC="disable the update of the icon cache after installing" DISABLE_ICON_UPDATE_DOC="disable the update of the icon cache after installing"

View File

@ -9,6 +9,7 @@ enable_testing ()
option(ICON_UPDATE "Update the icon cache after installing" ON) option(ICON_UPDATE "Update the icon cache after installing" ON)
option(BUILD_VALADOC "Build API documentation if Valadoc is available" OFF) option(BUILD_VALADOC "Build API documentation if Valadoc is available" OFF)
option(DISABLE_AUR "DISABLE_AUR" OFF) option(DISABLE_AUR "DISABLE_AUR" OFF)
option(ENABLE_UPDATE_ICON "ENABLE_UPDATE_ICON" OFF)
option(KDE_TRAY "KDE_TRAY" OFF) option(KDE_TRAY "KDE_TRAY" OFF)
if( NOT CMAKE_BUILD_TYPE ) if( NOT CMAKE_BUILD_TYPE )

View File

@ -49,6 +49,8 @@ make
- -DDISABLE_AUR=ON (to disable AUR in Pamac) - -DDISABLE_AUR=ON (to disable AUR in Pamac)
- -DKDE_TRAY=ON (to build kde tray icon instead of gtk tray icon) - -DKDE_TRAY=ON (to build kde tray icon instead of gtk tray icon)
- -DENABLE_UPDATE_ICON=ON (to install the update desktop entry)
- -DICON_UPDATE=OFF (to disable updating the icon cache)
## Using CMake with Ninja ## Using CMake with Ninja
@ -66,6 +68,8 @@ ninja
- -DDISABLE_AUR=ON (to disable AUR in Pamac) - -DDISABLE_AUR=ON (to disable AUR in Pamac)
- -DKDE_TRAY=ON (to build kde tray icon instead of gtk tray icon) - -DKDE_TRAY=ON (to build kde tray icon instead of gtk tray icon)
- -DENABLE_UPDATE_ICON=ON (to install the update desktop entry)
- -DICON_UPDATE=OFF (to disable updating the icon cache)
## Using Meson with Ninja ## Using Meson with Ninja
@ -81,6 +85,8 @@ ninja
- -DDISABLE_AUR=ON (to disable AUR in Pamac) - -DDISABLE_AUR=ON (to disable AUR in Pamac)
- -DKDE_TRAY=ON (to build kde tray icon instead of gtk tray icon) - -DKDE_TRAY=ON (to build kde tray icon instead of gtk tray icon)
- -DENABLE_UPDATE_ICON=ON (to install the update desktop entry)
- -DICON_UPDATE=OFF (to disable updating the icon cache)
## Using configure wrapper ## Using configure wrapper
@ -96,4 +102,6 @@ make
### Extra configure options ### Extra configure options
- --disable-aur (to disable Aur in Pamac) - --disable-aur (to disable Aur in Pamac)
- --enable-kde-tray (to build kde tray icon instead of gtk tray icon) - --enable-kde-tray (to build kde tray icon instead of gtk tray icon)
- --enable-update-desktop (to install the update desktop entry)
- --disable-icon-update (to disable updating the icon cache)

View File

@ -42,6 +42,9 @@ SET (pamac_transaction_gresource_xml_C_FILE ${CMAKE_CURRENT_BINARY_DIR}/pamac.tr
SET (pamac_transaction_gresource_xml_H_FILE ${CMAKE_CURRENT_BINARY_DIR}/pamac.transaction.gresource.xml.h PARENT_SCOPE) SET (pamac_transaction_gresource_xml_H_FILE ${CMAKE_CURRENT_BINARY_DIR}/pamac.transaction.gresource.xml.h PARENT_SCOPE)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pamac-install.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/ ) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pamac-install.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/ )
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pamac-manager.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/ ) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pamac-manager.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/ )
if (ENABLE_UPDATE_ICON)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pamac-updater.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/ )
endif ()
if (KDE_TRAY) if (KDE_TRAY)
if( NOT ( ${CMAKE_INSTALL_PREFIX} MATCHES "^/home/" ) ) if( NOT ( ${CMAKE_INSTALL_PREFIX} MATCHES "^/home/" ) )
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pamac-tray-appindicator.desktop DESTINATION /etc/xdg/autostart/ ) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pamac-tray-appindicator.desktop DESTINATION /etc/xdg/autostart/ )

View File

@ -6,13 +6,13 @@ IF(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/org.pamac.system.conf)
install(DIRECTORY install(DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}/org.pamac.system.conf ${CMAKE_CURRENT_SOURCE_DIR}/org.pamac.system.conf
DESTINATION DESTINATION
/etc/dbus-1/system.d /usr/share/dbus-1/system.d
) )
ELSE() ELSE()
install(FILES install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/org.pamac.system.conf ${CMAKE_CURRENT_SOURCE_DIR}/org.pamac.system.conf
DESTINATION DESTINATION
/etc/dbus-1/system.d /usr/share/dbus-1/system.d
) )
ENDIF() ENDIF()

134
data/pamac-updater.desktop Normal file
View File

@ -0,0 +1,134 @@
[Desktop Entry]
Name=Software Update
Name[af]=Sagtewarebywerking
Name[ar]=تحديث البرمجيات
Name[as]=
Name[ast]=Anovamientu de software
Name[be]=Абнаўленне апраграмавання
Name[bg]=Обновление на софтуера
Name[bn]=
Name[bn_IN]=
Name[ca]=Actualització de programari
Name[ca@valencia]=Actualització de programari
Name[cs]=Aktualizace softwaru
Name[da]=Softwareopdatering
Name[de]=Software-Aktualisierungen
Name[el]=Ενημέρωση λογισμικού
Name[en@shaw]=𐑕𐑪𐑓𐑑𐑢𐑺 𐑳𐑐𐑛𐑱𐑑
Name[en_GB]=Software Update
Name[eo]=Programar-ĝistatigo
Name[es]=Actualización de software
Name[et]=Tarkvarauuendus
Name[eu]=Softwarearen eguneraketa
Name[fa]=بروزرسانی نرمافزار
Name[fi]=Ohjelmistopäivitykset
Name[fr]=Mise à jour des logiciels
Name[gl]=Actualización de software
Name[gu]=
Name[he]=עדכון תכנה
Name[hi]=
Name[hu]=Szoftverfrissítés
Name[id]=Pembaruan Perangkat Lunak
Name[it]=Aggiornamento software
Name[ja]=
Name[kn]=
Name[ko]=
Name[lt]=Programinės įrangos atnaujinimas
Name[lv]=Programmatūras atjaunināšana
Name[mk]=Ажурирање на софтвер
Name[ml]= ി
Name[mr]=
Name[nb]=Programvareoppdatering
Name[nl]=Software bijwerken
Name[nn]=Programvareoppdatering
Name[or]=
Name[pa]=
Name[pl]=Aktualizacja oprogramowania
Name[pt]=Actualização de Software
Name[pt_BR]=Atualizações de programas
Name[ro]=Actualizări de programe
Name[ru]=Обновление программ
Name[sk]=Aktualizácia softvéru
Name[sl]=Posodobitev programske opreme
Name[sr]=Ажурирање програма
Name[sr@latin]=Ažuriranje programa
Name[sv]=Programuppdatering
Name[ta]=
Name[te]=
Name[th]=
Name[tr]=Yazılım Güncelleme
Name[ug]=يۇمشاق دېتال يېڭىلاش
Name[uk]=Оновлення програм
Name[vi]=Bn cp nht phn mm
Name[zh_CN]=
Name[zh_HK]=
Name[zh_TW]=
Comment=Update software installed on the system
Comment[af]=Werk geïnstalleer sagteware op die stelsel by
Comment[ar]=حدّث الحزم المُثبّتة على النظام
Comment[as]= ি
Comment[ast]=Anovar el software instaláu nel sistema
Comment[be]=Абнаўленне апраграмавання, усталяванага ў сістэме
Comment[bg]=Обновяване на софтуера инсталиран върху системата
Comment[bn]=ি
Comment[bn_IN]=ি
Comment[ca]=Actualitza el programari instal·lat en el sistema
Comment[ca@valencia]=Actualitza el programari instal·lat en el sistema
Comment[cs]=Aktualizovat software instalovaný v tomto systému
Comment[da]=Opdatér software installeret på systemet
Comment[de]=Auf dem System installierte Software aktualisieren
Comment[el]=Ενημέρωση εγκατεστημένου λογισμικού
Comment[en@shaw]=𐑳𐑐𐑛𐑱𐑑 𐑕𐑪𐑓𐑑𐑢𐑺 𐑦𐑯𐑕𐑑𐑷𐑤𐑛 𐑪𐑯 𐑞 𐑕𐑦𐑕𐑑𐑩𐑥
Comment[en_GB]=Update software installed on the system
Comment[es]=Actualizar el software instalado en el sistema
Comment[et]=Süsteemi paigaldatud tarkvara uuendamine
Comment[eu]=Eguneratu sisteman instalatutako softwarea
Comment[fa]=بروزرسانی نرمافزار نصب شده بر روی سیستم
Comment[fi]=Päivitä järjestelmään asennettuja ohjelmistoja
Comment[fr]=Met à jour les logiciels installés sur le système
Comment[gl]=Actualizar o software instalado no sistema
Comment[gu]=િ િ
Comment[he]=עדכון תוכנות המותקנות על המערכת
Comment[hi]=ि ि
Comment[hu]=A rendszerre telepített szoftverek frissítése
Comment[id]=Mutakhirkan perangkat lunak yang terpasang pada sistem
Comment[it]=Aggiorna il software installato sul sistema
Comment[ja]=
Comment[kn]=ಿ ಿಿ
Comment[ko]=
Comment[lt]=Atnaujinti sistemoje įdiegtą programinę įrangą
Comment[lv]=Atjaunināt sistēmā instalēto programmatūru
Comment[mk]=Ажурирај го софтверот инсталирај на системот
Comment[ml]=ിി ിി ിി
Comment[mr]= ि
Comment[nb]=Oppdater programvare som er installert på systemet
Comment[nl]=Werk de op uw systeem geïnstalleerde software bij
Comment[nn]=Oppdater programvare installert på systemet
Comment[or]= ି
Comment[pa]=ਿ
Comment[pl]=Aktualizacja oprogramowania zainstalowanego w systemie
Comment[pt]=Actualizar software instalado no sistema
Comment[pt_BR]=Atualize os programas instalados no sistema
Comment[ro]=Actualizați programele instalate pe sistem
Comment[ru]=Обновление программ, установленных в системе
Comment[sk]=Aktualizuje softvér nainštalovaný v tomto počítači
Comment[sl]=Posodobitev programske opreme nameščene na sistemu
Comment[sr]=Ажурирајте програме инсталиране на овом систему
Comment[sr@latin]=Ažurirajte programe instalirane na ovom sistemu
Comment[sv]=Uppdatera programvara installerade på systemet
Comment[ta]=ிிி ி ி
Comment[te]= ిి ి
Comment[th]=
Comment[tr]=Sisteminizde yüklü yazılımı güncelleyin
Comment[ug]=يېڭىلاش يۇمشاق دېتال بۇ سىستېمىغا ئورنىتىلدى
Comment[uk]=Оновлення програм, встановлених у системі
Comment[vi]=Cp nht phn mm đã cài đt trên h thng
Comment[zh_CN]=
Comment[zh_HK]=
Comment[zh_TW]=
Icon=system-software-update
Exec=pamac-updater
Terminal=false
Type=Application
Categories=GNOME;GTK;System;Settings;X-XFCE-SettingsDialog;X-XFCE-SystemSettings;
StartupNotify=true

View File

@ -1,6 +1,7 @@
project('pamac',['c','vala']) project('pamac',['c','vala'])
DISABLE_AUR = (get_option('DISABLE_AUR') != '') DISABLE_AUR = (get_option('DISABLE_AUR') != '')
ENABLE_UPDATE_ICON = (get_option('ENABLE_UPDATE_ICON') != '')
KDE_TRAY = (get_option('KDE_TRAY') != '') KDE_TRAY = (get_option('KDE_TRAY') != '')
add_global_arguments('-DGETTEXT_PACKAGE="pamac"',language: 'c') add_global_arguments('-DGETTEXT_PACKAGE="pamac"',language: 'c')
@ -24,7 +25,7 @@ gobject_2_0_dep = dependency('gobject-2.0')
subdir('po') subdir('po')
cfg_dbus_data = configuration_data() cfg_dbus_data = configuration_data()
cfg_dbus_data.set ('DBUS_PREFIX',get_option('prefix')) cfg_dbus_data.set ('DBUS_PREFIX',get_option('prefix'))
meson.add_install_script(join_paths(meson.current_source_dir(),'meson_scripts','install_data.sh'),'/etc/dbus-1/system.d',join_paths(meson.current_source_dir(),'data/dbus','org.pamac.system.conf')) meson.add_install_script(join_paths(meson.current_source_dir(),'meson_scripts','install_data.sh'),'/usr/share/dbus-1/system.d',join_paths(meson.current_source_dir(),'data/dbus','org.pamac.system.conf'))
meson.add_install_script(join_paths(meson.current_source_dir(),'meson_scripts','install_data.sh'),'/usr/lib/systemd/system',join_paths(meson.current_source_dir(),'data/systemd','pamac-system.service')) meson.add_install_script(join_paths(meson.current_source_dir(),'meson_scripts','install_data.sh'),'/usr/lib/systemd/system',join_paths(meson.current_source_dir(),'data/systemd','pamac-system.service'))
@ -68,6 +69,9 @@ meson.add_install_script(join_paths(meson.current_source_dir(),'meson_scripts','
install_data('data/pamac-install.desktop',install_dir:join_paths(get_option('prefix'),get_option('datadir'),'applications')) install_data('data/pamac-install.desktop',install_dir:join_paths(get_option('prefix'),get_option('datadir'),'applications'))
install_data('data/pamac-manager.desktop',install_dir:join_paths(get_option('prefix'),get_option('datadir'),'applications')) install_data('data/pamac-manager.desktop',install_dir:join_paths(get_option('prefix'),get_option('datadir'),'applications'))
if ENABLE_UPDATE_ICON
install_data('data/pamac-updater.desktop',install_dir:join_paths(get_option('prefix'),get_option('datadir'),'applications'))
endif
if KDE_TRAY if KDE_TRAY
if (get_option('prefix').startswith('/home/')) if (get_option('prefix').startswith('/home/'))
message('Autostart file data/pamac-tray-appindicator.desktop will not be installed. You must create your own .desktop file and put it at ~/.config/autostart') message('Autostart file data/pamac-tray-appindicator.desktop will not be installed. You must create your own .desktop file and put it at ~/.config/autostart')

View File

@ -1,2 +1,3 @@
option('DISABLE_AUR',type : 'string', value: '') option('DISABLE_AUR',type : 'string', value: '')
option('ENABLE_UPDATE_ICON',type : 'string', value: '')
option('KDE_TRAY',type : 'string', value: '') option('KDE_TRAY',type : 'string', value: '')

View File

@ -3,7 +3,7 @@ autovala_version: 26
project_name: pamac project_name: pamac
vala_version: 0.38 vala_version: 0.38
custom: data/dbus/org.pamac.system.conf /etc/dbus-1/system.d custom: data/dbus/org.pamac.system.conf /usr/share/dbus-1/system.d
custom: data/systemd/pamac-system.service /usr/lib/systemd/system custom: data/systemd/pamac-system.service /usr/lib/systemd/system
custom: data/systemd/pamac-cleancache.service /usr/lib/systemd/system custom: data/systemd/pamac-cleancache.service /usr/lib/systemd/system
custom: data/systemd/pamac-cleancache.timer /usr/lib/systemd/system custom: data/systemd/pamac-cleancache.timer /usr/lib/systemd/system
@ -17,6 +17,7 @@ else
custom: data/config/pamac.conf /etc custom: data/config/pamac.conf /etc
end end
define: ENABLE_UPDATE_ICON
define: KDE_TRAY define: KDE_TRAY
*define: DISABLE_AUR *define: DISABLE_AUR
@ -212,6 +213,9 @@ end
*desktop: data/pamac-install.desktop *desktop: data/pamac-install.desktop
*desktop: data/pamac-manager.desktop *desktop: data/pamac-manager.desktop
if ENABLE_UPDATE_ICON
desktop: data/pamac-updater.desktop
end
if KDE_TRAY if KDE_TRAY
autostart: data/pamac-tray-appindicator.desktop autostart: data/pamac-tray-appindicator.desktop

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Pamac\n" "Project-Id-Version: Pamac\n"
"Report-Msgid-Bugs-To: cromer@cromnix.org\n" "Report-Msgid-Bugs-To: cromer@cromnix.org\n"
"POT-Creation-Date: 2017-10-29 12:13-0300\n" "POT-Creation-Date: 2017-10-29 14:28-0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -52,6 +52,11 @@ if (DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " ) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif () endif ()
if (ENABLE_UPDATE_ICON)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_UPDATE_ICON " )
endif ()
if (KDE_TRAY) if (KDE_TRAY)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY) set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )

View File

@ -36,6 +36,11 @@ if (DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " ) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif () endif ()
if (ENABLE_UPDATE_ICON)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_UPDATE_ICON " )
endif ()
if (KDE_TRAY) if (KDE_TRAY)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY) set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )

View File

@ -20,6 +20,10 @@ if DISABLE_AUR
aur_vala_args += ['-D', 'DISABLE_AUR'] aur_vala_args += ['-D', 'DISABLE_AUR']
aur_c_args += ['-DDISABLE_AUR'] aur_c_args += ['-DDISABLE_AUR']
endif endif
if ENABLE_UPDATE_ICON
aur_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
aur_c_args += ['-DENABLE_UPDATE_ICON']
endif
if KDE_TRAY if KDE_TRAY
aur_vala_args += ['-D', 'KDE_TRAY'] aur_vala_args += ['-D', 'KDE_TRAY']
aur_c_args += ['-DKDE_TRAY'] aur_c_args += ['-DKDE_TRAY']

View File

@ -38,6 +38,10 @@ if DISABLE_AUR
pamac_vala_args += ['-D', 'DISABLE_AUR'] pamac_vala_args += ['-D', 'DISABLE_AUR']
pamac_c_args += ['-DDISABLE_AUR'] pamac_c_args += ['-DDISABLE_AUR']
endif endif
if ENABLE_UPDATE_ICON
pamac_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
pamac_c_args += ['-DENABLE_UPDATE_ICON']
endif
if KDE_TRAY if KDE_TRAY
pamac_vala_args += ['-D', 'KDE_TRAY'] pamac_vala_args += ['-D', 'KDE_TRAY']
pamac_c_args += ['-DKDE_TRAY'] pamac_c_args += ['-DKDE_TRAY']

View File

@ -40,6 +40,11 @@ if (DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " ) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif () endif ()
if (ENABLE_UPDATE_ICON)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_UPDATE_ICON " )
endif ()
if (KDE_TRAY) if (KDE_TRAY)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY) set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )

View File

@ -24,6 +24,10 @@ if DISABLE_AUR
pamac_clean_cache_vala_args += ['-D', 'DISABLE_AUR'] pamac_clean_cache_vala_args += ['-D', 'DISABLE_AUR']
pamac_clean_cache_c_args += ['-DDISABLE_AUR'] pamac_clean_cache_c_args += ['-DDISABLE_AUR']
endif endif
if ENABLE_UPDATE_ICON
pamac_clean_cache_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
pamac_clean_cache_c_args += ['-DENABLE_UPDATE_ICON']
endif
if KDE_TRAY if KDE_TRAY
pamac_clean_cache_vala_args += ['-D', 'KDE_TRAY'] pamac_clean_cache_vala_args += ['-D', 'KDE_TRAY']
pamac_clean_cache_c_args += ['-DKDE_TRAY'] pamac_clean_cache_c_args += ['-DKDE_TRAY']

View File

@ -39,6 +39,11 @@ if (DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " ) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif () endif ()
if (ENABLE_UPDATE_ICON)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_UPDATE_ICON " )
endif ()
if (KDE_TRAY) if (KDE_TRAY)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY) set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )

View File

@ -25,6 +25,10 @@ if DISABLE_AUR
pamac_install_vala_args += ['-D', 'DISABLE_AUR'] pamac_install_vala_args += ['-D', 'DISABLE_AUR']
pamac_install_c_args += ['-DDISABLE_AUR'] pamac_install_c_args += ['-DDISABLE_AUR']
endif endif
if ENABLE_UPDATE_ICON
pamac_install_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
pamac_install_c_args += ['-DENABLE_UPDATE_ICON']
endif
if KDE_TRAY if KDE_TRAY
pamac_install_vala_args += ['-D', 'KDE_TRAY'] pamac_install_vala_args += ['-D', 'KDE_TRAY']
pamac_install_c_args += ['-DKDE_TRAY'] pamac_install_c_args += ['-DKDE_TRAY']

View File

@ -40,6 +40,11 @@ if (DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " ) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif () endif ()
if (ENABLE_UPDATE_ICON)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_UPDATE_ICON " )
endif ()
if (KDE_TRAY) if (KDE_TRAY)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY) set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )

View File

@ -26,6 +26,10 @@ if DISABLE_AUR
pamac_manager_vala_args += ['-D', 'DISABLE_AUR'] pamac_manager_vala_args += ['-D', 'DISABLE_AUR']
pamac_manager_c_args += ['-DDISABLE_AUR'] pamac_manager_c_args += ['-DDISABLE_AUR']
endif endif
if ENABLE_UPDATE_ICON
pamac_manager_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
pamac_manager_c_args += ['-DENABLE_UPDATE_ICON']
endif
if KDE_TRAY if KDE_TRAY
pamac_manager_vala_args += ['-D', 'KDE_TRAY'] pamac_manager_vala_args += ['-D', 'KDE_TRAY']
pamac_manager_c_args += ['-DKDE_TRAY'] pamac_manager_c_args += ['-DKDE_TRAY']

View File

@ -50,6 +50,11 @@ if (DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " ) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif () endif ()
if (ENABLE_UPDATE_ICON)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_UPDATE_ICON " )
endif ()
if (KDE_TRAY) if (KDE_TRAY)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY) set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )

View File

@ -34,6 +34,10 @@ if DISABLE_AUR
pamac_system_daemon_vala_args += ['-D', 'DISABLE_AUR'] pamac_system_daemon_vala_args += ['-D', 'DISABLE_AUR']
pamac_system_daemon_c_args += ['-DDISABLE_AUR'] pamac_system_daemon_c_args += ['-DDISABLE_AUR']
endif endif
if ENABLE_UPDATE_ICON
pamac_system_daemon_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
pamac_system_daemon_c_args += ['-DENABLE_UPDATE_ICON']
endif
if KDE_TRAY if KDE_TRAY
pamac_system_daemon_vala_args += ['-D', 'KDE_TRAY'] pamac_system_daemon_vala_args += ['-D', 'KDE_TRAY']
pamac_system_daemon_c_args += ['-DKDE_TRAY'] pamac_system_daemon_c_args += ['-DKDE_TRAY']

View File

@ -56,6 +56,11 @@ if (DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " ) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif () endif ()
if (ENABLE_UPDATE_ICON)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_UPDATE_ICON " )
endif ()
if (KDE_TRAY) if (KDE_TRAY)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY) set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )

View File

@ -40,6 +40,10 @@ if DISABLE_AUR
pamac_tray_vala_args += ['-D', 'DISABLE_AUR'] pamac_tray_vala_args += ['-D', 'DISABLE_AUR']
pamac_tray_c_args += ['-DDISABLE_AUR'] pamac_tray_c_args += ['-DDISABLE_AUR']
endif endif
if ENABLE_UPDATE_ICON
pamac_tray_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
pamac_tray_c_args += ['-DENABLE_UPDATE_ICON']
endif
if KDE_TRAY if KDE_TRAY
pamac_tray_vala_args += ['-D', 'KDE_TRAY'] pamac_tray_vala_args += ['-D', 'KDE_TRAY']
pamac_tray_c_args += ['-DKDE_TRAY'] pamac_tray_c_args += ['-DKDE_TRAY']

View File

@ -46,6 +46,11 @@ if (DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " ) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif () endif ()
if (ENABLE_UPDATE_ICON)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D ENABLE_UPDATE_ICON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_UPDATE_ICON " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_UPDATE_ICON " )
endif ()
if (KDE_TRAY) if (KDE_TRAY)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY) set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )

View File

@ -30,6 +30,10 @@ if DISABLE_AUR
pamac_user_daemon_vala_args += ['-D', 'DISABLE_AUR'] pamac_user_daemon_vala_args += ['-D', 'DISABLE_AUR']
pamac_user_daemon_c_args += ['-DDISABLE_AUR'] pamac_user_daemon_c_args += ['-DDISABLE_AUR']
endif endif
if ENABLE_UPDATE_ICON
pamac_user_daemon_vala_args += ['-D', 'ENABLE_UPDATE_ICON']
pamac_user_daemon_c_args += ['-DENABLE_UPDATE_ICON']
endif
if KDE_TRAY if KDE_TRAY
pamac_user_daemon_vala_args += ['-D', 'KDE_TRAY'] pamac_user_daemon_vala_args += ['-D', 'KDE_TRAY']
pamac_user_daemon_c_args += ['-DKDE_TRAY'] pamac_user_daemon_c_args += ['-DKDE_TRAY']