12 Commits

Author SHA1 Message Date
ce6e45c968 update to 6.1.0 2017-10-15 17:11:11 -03:00
748acf65fd add some missed aur disable flags 2017-10-15 17:08:14 -03:00
082f63603a add pamac-cache-clean and save cache options 2017-10-15 17:04:01 -03:00
a605886d80 remove meson until stable 2017-10-15 16:15:21 -03:00
1adbd17b34 fix binary name 2017-10-15 15:37:17 -03:00
28aeac117e undo file change 2017-10-15 00:21:23 -03:00
7abf87ea27 remove meson.extra 2017-10-15 00:07:32 -03:00
0db40030c2 add meson support 2017-10-14 23:14:53 -03:00
705f49b80a remove update desktop entry 2017-10-14 18:40:26 -03:00
cc52ac1ce8 fix missing cmake flag with configure wrapper 2017-10-11 19:16:07 -03:00
914c939ee9 needs glib 2.38 or higher 2017-10-11 17:42:54 -03:00
74fb52d957 update requirements 2017-10-11 17:31:02 -03:00
32 changed files with 317 additions and 191 deletions

View File

@@ -2,5 +2,6 @@
ENABLE_VARS="kde-tray|ON|KDE_TRAY"
ENABLE_KDE_TRAY_DOC="build with kde tray and appindicator instead of gtk3 tray"
DISABLE_VARS="aur|ON|DISABLE_AUR"
DISABLE_VARS="aur|ON|DISABLE_AUR icon-update|OFF|ICON_UPDATE"
DISABLE_DISABLE_AUR_DOC="disable the AUR in pamac"
DISABLE_ICON_UPDATE_DOC="disable the update of the icon cache after installing"

View File

@@ -76,6 +76,7 @@ add_subdirectory(src)
add_subdirectory(src/aur)
add_subdirectory(src/pamac-user-daemon)
add_subdirectory(src/pamac-tray)
add_subdirectory(src/pamac-clean-cache)
add_subdirectory(src/pamac-install)
add_subdirectory(src/pamac-manager)
add_subdirectory(src/pamac-system-daemon)

View File

@@ -20,7 +20,7 @@ A graphical package manager for pacman
- GTK+: 3.0
- GIO: 2.0
- GLib: 2.0
- GLib: 2.38
- GObject: 2.0
- Json-Glib: 1.0
- libalpm
@@ -31,8 +31,8 @@ A graphical package manager for pacman
- vte: 2.91
- appindicator-gtk3 (optional to build KDE tray icon)
- CMake
- Vala
- AutoVala (optional to regenerate CMake files)
- Vala: 0.38
- AutoVala: 1.1.1 (optional to regenerate CMake files)
## Using CMake

View File

@@ -2,5 +2,6 @@
ENABLE_VARS="kde-tray|ON|KDE_TRAY"
ENABLE_KDE_TRAY_DOC="build with kde tray and appindicator instead of gtk3 tray"
DISABLE_VARS="aur|ON|DISABLE_AUR"
DISABLE_VARS="aur|ON|DISABLE_AUR icon-update|OFF|ICON_UPDATE"
DISABLE_DISABLE_AUR_DOC="disable the AUR in pamac"
DISABLE_ICON_UPDATE_DOC="disable the update of the icon cache after installing"

View File

@@ -71,7 +71,6 @@ SET (pamac_transaction_gresource_xml_H_FILE ${CMAKE_CURRENT_BINARY_DIR}/pamac.tr
endif ()
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-updater.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/ )
if (KDE_TRAY)
if( NOT ( ${CMAKE_INSTALL_PREFIX} MATCHES "^/home/" ) )
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pamac-tray-appindicator.desktop DESTINATION /etc/xdg/autostart/ )

View File

@@ -9,3 +9,9 @@ RefreshPeriod = 6
## When there are no updates available, hide the tray icon:
#NoUpdateHideIcon
## Number of versions of each package to keep in the cache:
KeepNumPackages = 3
## Remove only the versions of uninstalled packages when clean cache:
#OnlyRmUninstalled

View File

@@ -24,3 +24,9 @@ BuildDirectory = /tmp
## Do not ask for confirmation when building packages:
#NoConfirmBuild
## Number of versions of each package to keep in the cache:
KeepNumPackages = 3
## Remove only the versions of uninstalled packages when clean cache:
#OnlyRmUninstalled

View File

@@ -1,7 +1,7 @@
[Desktop Entry]
Name=Update Notifier Appindicator
Icon=update-notifier
Exec=pamac-tray-appindicator
Exec=pamac-tray
Terminal=false
Type=Application
StartupNotify=true

View File

@@ -1,134 +0,0 @@
[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]=Bản cập nhật phần mềm
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]=Cįŗ­p nhįŗ­t phįŗ§n mềm đã cĆ i đặt trĆŖn hệ thống
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

@@ -3,4 +3,4 @@ Description=Clean packages cache
[Service]
Type=oneshot
ExecStart=/usr/bin/paccache -r
ExecStart=/usr/bin/pamac-clean-cache

View File

@@ -1,7 +1,7 @@
### AutoVala Project ###
autovala_version: 24
project_name: pamac
*vala_version: 0.38
vala_version: 0.38
custom: data/dbus/org.pamac.system.conf ${CMAKE_INSTALL_SYSCONFDIR}/dbus-1/system.d
custom: data/dbus/org.pamac.user.service ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}/dbus-1/services
@@ -33,8 +33,19 @@ end
vapidir: src/vapis
vala_binary: src/pamac-clean-cache/pamac-clean-cache
version: 6.1.0
vala_local_package: Pamac
vala_package: posix
vala_check_package: gtk+-3.0
*vala_check_package: gio-2.0
*vala_check_package: glib-2.0
*vala_check_package: gobject-2.0
*vala_source: clean_cache.vala
*vala_source: pamac_config.vala
vala_binary: src/pamac-install/pamac-install
version: 6.0.0
version: 6.1.0
use_gresource: pamac_installer_gresource_xml
vala_local_package: Pamac
vala_check_package: gtk+-3.0
@@ -45,7 +56,7 @@ vala_check_package: gtk+-3.0
*vala_source: progress_dialog.vala
vala_binary: src/pamac-manager/pamac-manager
version: 6.0.0
version: 6.1.0
use_gresource: pamac_manager_gresource_xml
vala_local_package: Pamac
vala_check_package: gtk+-3.0
@@ -57,7 +68,7 @@ vala_check_package: gtk+-3.0
*vala_source: manager_window.vala
vala_binary: src/pamac-system-daemon/pamac-system-daemon
version: 6.0.0
version: 6.1.0
vala_local_package: Pamac
if NOT DISABLE_AUR
vala_local_package: AUR
@@ -78,7 +89,7 @@ vala_check_package: polkit-gobject-1
*vala_source: system_daemon.vala
vala_binary: src/pamac-tray/pamac-tray
version: 6.0.0
version: 6.1.0
vala_local_package: Pamac
if NOT DISABLE_AUR
vala_local_package: AUR
@@ -104,9 +115,11 @@ end
*vala_source: user_daemon.vala
vala_binary: src/pamac-user-daemon/pamac-user-daemon
version: 6.0.0
vala_local_package: AUR
version: 6.1.0
vala_local_package: Pamac
if NOT DISABLE_AUR
vala_local_package: AUR
end
vala_package: posix
vala_check_package: gtk+-3.0
vala_check_package: json-glib-1.0
@@ -120,7 +133,7 @@ vala_check_package: libsoup-2.4
vala_library: src/pamac
version: 6.0.0
version: 6.1.0
*namespace: Pamac
use_gresource: pamac_transaction_gresource_xml
vala_package: posix
@@ -132,6 +145,7 @@ vala_check_package: vte-2.91
*vala_check_package: gio-2.0
*vala_check_package: glib-2.0
*vala_check_package: gobject-2.0
*c_library: m
*vala_source: alpm_config.vala
*vala_source: choose_ignorepkgs_dialog.vala
*vala_source: choose_provider_dialog.vala
@@ -145,7 +159,7 @@ vala_check_package: vte-2.91
*vala_source: transaction_sum_dialog.vala
vala_library: src/aur/aur
version: 6.0.0
version: 6.1.0
*namespace: AUR
vala_check_package: json-glib-1.0
vala_check_package: libsoup-2.4
@@ -168,6 +182,8 @@ vala_check_package: libsoup-2.4
*translate: vala src/common.vala
*translate: vala src/mirrors_config.vala
*translate: vala src/package.vala
*translate: vala src/pamac-clean-cache/clean_cache.vala
*translate: vala src/pamac-clean-cache/pamac_config.vala
*translate: vala src/pamac-install/installer.vala
*translate: vala src/pamac-install/progress_dialog.vala
*translate: vala src/pamac-manager/history_dialog.vala
@@ -204,7 +220,6 @@ end
*desktop: data/pamac-install.desktop
*desktop: data/pamac-manager.desktop
*desktop: data/pamac-updater.desktop
if KDE_TRAY
autostart: data/pamac-tray-appindicator.desktop
@@ -241,9 +256,5 @@ end
*pixmap: data/pixmaps/package-upgrade.png
# These depends are needed to enable parallel builds
include: src/pamac-install/CMakeDepends.txt
include: src/pamac-manager/CMakeDepends.txt
include: src/pamac-system-daemon/CMakeDepends.txt
include: src/pamac-tray/CMakeDepends.txt
include: src/pamac-user-daemon/CMakeDepends.txt

View File

@@ -3,4 +3,4 @@
include (Translations)
add_translations_directory("pamac")
add_translations_catalog("pamac" ../src/pamac-install ../src/pamac-manager ../src/pamac-system-daemon ../src/pamac-tray ../src/pamac-user-daemon ../src ../src/aur ../data/interface )
add_translations_catalog("pamac" ../src/pamac-clean-cache ../src/pamac-install ../src/pamac-manager ../src/pamac-system-daemon ../src/pamac-tray ../src/pamac-user-daemon ../src ../src/aur ../data/interface )

View File

@@ -1,3 +1,5 @@
src/pamac-clean-cache/clean_cache.vala
src/pamac-clean-cache/pamac_config.vala
src/pamac-install/installer.vala
src/pamac-install/progress_dialog.vala
src/pamac-manager/history_dialog.vala

View File

@@ -7,7 +7,7 @@ set (GETTEXT_PACKAGE "pamac")
set (RELEASE_NAME "pamac")
set (CMAKE_C_FLAGS "")
set (PREFIX ${CMAKE_INSTALL_PREFIX})
set (VERSION "6.0.0")
set (VERSION "6.1.0")
set (TESTSRCDIR "${CMAKE_SOURCE_DIR}")
set (DOLLAR "$")
@@ -15,7 +15,7 @@ configure_file (${CMAKE_SOURCE_DIR}/src/Config.vala.base ${CMAKE_BINARY_DIR}/src
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Pamac.pc ${CMAKE_CURRENT_BINARY_DIR}/Pamac.pc)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Pamac.deps ${CMAKE_CURRENT_BINARY_DIR}/Pamac.deps)
set (VERSION "6.0.0")
set (VERSION "6.1.0")
add_definitions (${DEPS_CFLAGS})
link_libraries ( ${DEPS_LIBRARIES} )
link_directories ( ${DEPS_LIBRARY_DIRS} )
@@ -83,9 +83,10 @@ SET (VALA_C ${VALA_C} ${pamac_transaction_gresource_xml_C_FILE})
add_library(Pamac SHARED ${VALA_C})
add_dependencies (Pamac pamac_transaction_gresource_xml)
target_link_libraries( Pamac m )
set_target_properties( Pamac PROPERTIES
VERSION
6.0.0
6.1.0
SOVERSION
6 )

View File

@@ -6,7 +6,7 @@ includedir=@DOLLAR@{exec_prefix}/${CMAKE_INSTALL_INCLUDEDIR}
Name: Pamac
Description: Pamac
Version: 6.0.0
Version: 6.1.0
Libs: -L@DOLLAR@{libdir} -lPamac
Cflags: -I@DOLLAR@{includedir}
Requires: gdk-3.0 gtk+-3.0 libalpm libnotify vte-2.91 gio-2.0 glib-2.0 gobject-2.0

View File

@@ -6,7 +6,7 @@ includedir=@DOLLAR@{exec_prefix}/${CMAKE_INSTALL_INCLUDEDIR}
Name: AUR
Description: AUR
Version: 6.0.0
Version: 6.1.0
Libs: -L@DOLLAR@{libdir} -lAUR
Cflags: -I@DOLLAR@{includedir}
Requires: json-glib-1.0 libsoup-2.4 glib-2.0

View File

@@ -7,7 +7,7 @@ set (GETTEXT_PACKAGE "pamac")
set (RELEASE_NAME "pamac")
set (CMAKE_C_FLAGS "")
set (PREFIX ${CMAKE_INSTALL_PREFIX})
set (VERSION "6.0.0")
set (VERSION "6.1.0")
set (TESTSRCDIR "${CMAKE_SOURCE_DIR}")
set (DOLLAR "$")
@@ -15,7 +15,7 @@ configure_file (${CMAKE_SOURCE_DIR}/src/aur/Config.vala.base ${CMAKE_BINARY_DIR}
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/AUR.pc ${CMAKE_CURRENT_BINARY_DIR}/AUR.pc)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/AUR.deps ${CMAKE_CURRENT_BINARY_DIR}/AUR.deps)
set (VERSION "6.0.0")
set (VERSION "6.1.0")
add_definitions (${DEPS_CFLAGS})
link_libraries ( ${DEPS_LIBRARIES} )
link_directories ( ${DEPS_LIBRARY_DIRS} )
@@ -65,7 +65,7 @@ add_library(AUR SHARED ${VALA_C})
set_target_properties( AUR PROPERTIES
VERSION
6.0.0
6.1.0
SOVERSION
6 )

View File

@@ -0,0 +1,89 @@
### CMakeLists automatically created with AutoVala
### Do not edit
set (DATADIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}")
set (PKGDATADIR "${DATADIR}/pamac")
set (GETTEXT_PACKAGE "pamac")
set (RELEASE_NAME "pamac")
set (CMAKE_C_FLAGS "")
set (PREFIX ${CMAKE_INSTALL_PREFIX})
set (VERSION "6.1.0")
set (TESTSRCDIR "${CMAKE_SOURCE_DIR}")
set (DOLLAR "$")
configure_file (${CMAKE_SOURCE_DIR}/src/pamac-clean-cache/Config.vala.base ${CMAKE_BINARY_DIR}/src/pamac-clean-cache/Config.vala)
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
set (VERSION "6.1.0")
add_definitions (${DEPS_CFLAGS})
include_directories ( ${CMAKE_BINARY_DIR}/src )
link_libraries ( ${DEPS_LIBRARIES} -lPamac )
link_directories ( ${DEPS_LIBRARY_DIRS} ${CMAKE_BINARY_DIR}/src )
find_package (Vala REQUIRED)
include (ValaVersion)
ensure_vala_version ("0.38" MINIMUM)
include (ValaPrecompile)
set (VALA_PACKAGES ${VALA_PACKAGES} posix)
set (VALA_PACKAGES ${VALA_PACKAGES} gtk+-3.0)
set (VALA_PACKAGES ${VALA_PACKAGES} gio-2.0)
set (VALA_PACKAGES ${VALA_PACKAGES} glib-2.0)
set (VALA_PACKAGES ${VALA_PACKAGES} gobject-2.0)
set (APP_SOURCES ${APP_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/Config.vala)
set (APP_SOURCES ${APP_SOURCES} clean_cache.vala)
set (APP_SOURCES ${APP_SOURCES} pamac_config.vala)
set (CUSTOM_VAPIS_LIST ${CUSTOM_VAPIS_LIST} ${CMAKE_BINARY_DIR}/src/Pamac.vapi)
if (DISABLE_AUR)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDISABLE_AUR " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISABLE_AUR " )
endif ()
if (KDE_TRAY)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D KDE_TRAY)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DKDE_TRAY " )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKDE_TRAY " )
endif ()
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} --vapidir=${CMAKE_SOURCE_DIR}/src/vapis )
if ((${CMAKE_BUILD_TYPE} STREQUAL "Debug") OR (${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo"))
set(COMPILE_OPTIONS ${COMPILE_OPTIONS} "-g")
endif()
vala_precompile(VALA_C pamac-clean-cache
${APP_SOURCES}
PACKAGES
${VALA_PACKAGES}
CUSTOM_VAPIS
${CUSTOM_VAPIS_LIST}
OPTIONS
${COMPILE_OPTIONS}
)
add_executable(pamac-clean-cache ${VALA_C})
set ( pamac-clean-cache_DEPENDENCIES ${pamac-clean-cache_DEPENDENCIES} Pamac )
add_dependencies( pamac-clean-cache ${pamac-clean-cache_DEPENDENCIES} )
install(TARGETS
pamac-clean-cache
RUNTIME DESTINATION
${CMAKE_INSTALL_BINDIR}
)
if(HAVE_VALADOC)
valadoc(pamac-clean-cache
${CMAKE_BINARY_DIR}/valadoc/pamac-clean-cache
${APP_SOURCES}
PACKAGES
${VALA_PACKAGES}
CUSTOM_VAPIS
${CUSTOM_VAPIS_LIST}
)
install(DIRECTORY
${CMAKE_BINARY_DIR}/valadoc
DESTINATION
${CMAKE_INSTALL_DATAROOTDIR}/doc/pamac
)
endif()

View File

@@ -0,0 +1,10 @@
namespace Constants {
public const string DATADIR = "@DATADIR@";
public const string PKGDATADIR = "@PKGDATADIR@";
public const string GETTEXT_PACKAGE = "@GETTEXT_PACKAGE@";
public const string RELEASE_NAME = "@RELEASE_NAME@";
public const string VERSION = "@VERSION@";
#if UNITEST
public const string TESTSRCDIR = "@TESTSRCDIR@";
#endif
}

View File

@@ -0,0 +1,33 @@
/*
* pamac-vala
*
* Copyright (C) 2017 Chris Cromer <cromer@cromnix.org>
* Copyright (C) 2014-2017 Guillaume Benoit <guillaume@manjaro.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a get of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
int main () {
var pamac_config = new Pamac.Config ("/etc/pamac.conf");
string rm_only_uninstalled_str = "";
if (pamac_config.rm_only_uninstalled) {
rm_only_uninstalled_str = "-u";
}
try {
Process.spawn_command_line_sync ("paccache -q --nocolor %s -r -k %llu".printf (rm_only_uninstalled_str, pamac_config.keep_num_pkgs));
} catch (SpawnError e) {
stderr.printf ("SpawnError: %s\n", e.message);
}
return 0;
}

View File

@@ -0,0 +1 @@
../pamac_config.vala

View File

@@ -7,13 +7,13 @@ set (GETTEXT_PACKAGE "pamac")
set (RELEASE_NAME "pamac")
set (CMAKE_C_FLAGS "")
set (PREFIX ${CMAKE_INSTALL_PREFIX})
set (VERSION "6.0.0")
set (VERSION "6.1.0")
set (TESTSRCDIR "${CMAKE_SOURCE_DIR}")
set (DOLLAR "$")
configure_file (${CMAKE_SOURCE_DIR}/src/pamac-install/Config.vala.base ${CMAKE_BINARY_DIR}/src/pamac-install/Config.vala)
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
set (VERSION "6.0.0")
set (VERSION "6.1.0")
add_definitions (${DEPS_CFLAGS})
include_directories ( ${CMAKE_BINARY_DIR}/src )
link_libraries ( ${DEPS_LIBRARIES} -lPamac )
@@ -65,6 +65,8 @@ OPTIONS
SET (VALA_C ${VALA_C} ${pamac_installer_gresource_xml_C_FILE})
add_executable(pamac-install ${VALA_C})
add_dependencies (pamac-install pamac_installer_gresource_xml)
set ( pamac-install_DEPENDENCIES ${pamac-install_DEPENDENCIES} Pamac )
add_dependencies( pamac-install ${pamac-install_DEPENDENCIES} )
install(TARGETS
@@ -87,4 +89,3 @@ if(HAVE_VALADOC)
${CMAKE_INSTALL_DATAROOTDIR}/doc/pamac
)
endif()
include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeDepends.txt)

View File

@@ -1,3 +1,2 @@
add_dependencies(pamac-manager Pamac)
include (InstallSymlink)
install_symlink(pamac-manager ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/pamac-updater)

View File

@@ -7,13 +7,13 @@ set (GETTEXT_PACKAGE "pamac")
set (RELEASE_NAME "pamac")
set (CMAKE_C_FLAGS "")
set (PREFIX ${CMAKE_INSTALL_PREFIX})
set (VERSION "6.0.0")
set (VERSION "6.1.0")
set (TESTSRCDIR "${CMAKE_SOURCE_DIR}")
set (DOLLAR "$")
configure_file (${CMAKE_SOURCE_DIR}/src/pamac-manager/Config.vala.base ${CMAKE_BINARY_DIR}/src/pamac-manager/Config.vala)
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
set (VERSION "6.0.0")
set (VERSION "6.1.0")
add_definitions (${DEPS_CFLAGS})
include_directories ( ${CMAKE_BINARY_DIR}/src )
link_libraries ( ${DEPS_LIBRARIES} -lPamac )
@@ -67,6 +67,8 @@ OPTIONS
SET (VALA_C ${VALA_C} ${pamac_manager_gresource_xml_C_FILE})
add_executable(pamac-manager ${VALA_C})
add_dependencies (pamac-manager pamac_manager_gresource_xml)
set ( pamac-manager_DEPENDENCIES ${pamac-manager_DEPENDENCIES} Pamac )
add_dependencies( pamac-manager ${pamac-manager_DEPENDENCIES} )
install(TARGETS

View File

@@ -7,13 +7,13 @@ set (GETTEXT_PACKAGE "pamac")
set (RELEASE_NAME "pamac")
set (CMAKE_C_FLAGS "")
set (PREFIX ${CMAKE_INSTALL_PREFIX})
set (VERSION "6.0.0")
set (VERSION "6.1.0")
set (TESTSRCDIR "${CMAKE_SOURCE_DIR}")
set (DOLLAR "$")
configure_file (${CMAKE_SOURCE_DIR}/src/pamac-system-daemon/Config.vala.base ${CMAKE_BINARY_DIR}/src/pamac-system-daemon/Config.vala)
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
set (VERSION "6.0.0")
set (VERSION "6.1.0")
add_definitions (${DEPS_CFLAGS})
include_directories ( ${CMAKE_BINARY_DIR}/src ${CMAKE_BINARY_DIR}/src/aur )
link_libraries ( ${DEPS_LIBRARIES} -lPamac -lAUR )
@@ -73,6 +73,11 @@ OPTIONS
)
add_executable(pamac-system-daemon ${VALA_C})
set ( pamac-system-daemon_DEPENDENCIES ${pamac-system-daemon_DEPENDENCIES} Pamac )
if (NOT DISABLE_AUR)
set ( pamac-system-daemon_DEPENDENCIES ${pamac-system-daemon_DEPENDENCIES} AUR )
endif ()
add_dependencies( pamac-system-daemon ${pamac-system-daemon_DEPENDENCIES} )
install(TARGETS
@@ -95,4 +100,3 @@ if(HAVE_VALADOC)
${CMAKE_INSTALL_DATAROOTDIR}/doc/pamac
)
endif()
include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeDepends.txt)

View File

@@ -26,10 +26,15 @@ namespace Pamac {
public bool recurse { get; private set; }
public uint64 refresh_period { get; private set; }
public bool no_update_hide_icon { get; private set; }
#if DISABLE_AUR
#else
public bool enable_aur { get; private set; }
public bool search_aur { get; private set; }
public string aur_build_dir { get; private set; }
public bool check_aur_updates { get; private set; }
#endif
public uint64 keep_num_pkgs { get; private set; }
public bool rm_only_uninstalled { get; private set; }
public unowned HashTable<string,string> environment_variables {
get {
return _environment_variables;
@@ -71,10 +76,15 @@ namespace Pamac {
// set default options
recurse = false;
no_update_hide_icon = false;
#if DISABLE_AUR
#else
enable_aur = false;
search_aur = false;
aur_build_dir = "/tmp";
check_aur_updates = false;
#endif
keep_num_pkgs = 3;
rm_only_uninstalled = false;
parse_file (conf_path);
}
@@ -108,6 +118,8 @@ namespace Pamac {
}
} else if (key == "NoUpdateHideIcon") {
no_update_hide_icon = true;
#if DISABLE_AUR
#else
} else if (key == "EnableAUR") {
enable_aur = true;
} else if (key == "SearchInAURByDefault") {
@@ -118,6 +130,14 @@ namespace Pamac {
}
} else if (key == "CheckAURUpdates") {
check_aur_updates = true;
#endif
} else if (key == "KeepNumPackages") {
if (splitted.length == 2) {
unowned string val = splitted[1]._strip ();
keep_num_pkgs = uint64.parse (val);
}
} else if (key == "OnlyRmUninstalled") {
rm_only_uninstalled = true;
}
}
} catch (GLib.Error e) {
@@ -173,6 +193,8 @@ namespace Pamac {
} else {
data.append (line + "\n");
}
#if DISABLE_AUR
#else
} else if (line.contains ("EnableAUR")) {
if (new_conf.lookup_extended ("EnableAUR", null, out variant)) {
if (variant.get_boolean ()) {
@@ -213,6 +235,25 @@ namespace Pamac {
} else {
data.append (line + "\n");
}
#endif
} else if (line.contains ("KeepNumPackages")) {
if (new_conf.lookup_extended ("KeepNumPackages", null, out variant)) {
data.append ("KeepNumPackages = %llu\n".printf (variant.get_uint64 ()));
new_conf.remove ("KeepNumPackages");
} else {
data.append (line + "\n");
}
} else if (line.contains ("OnlyRmUninstalled")) {
if (new_conf.lookup_extended ("OnlyRmUninstalled", null, out variant)) {
if (variant.get_boolean ()) {
data.append ("OnlyRmUninstalled\n");
} else {
data.append ("#OnlyRmUninstalled\n");
}
new_conf.remove ("OnlyRmUninstalled");
} else {
data.append (line + "\n");
}
} else {
data.append (line + "\n");
}
@@ -246,6 +287,8 @@ namespace Pamac {
} else {
data.append ("#NoUpdateHideIcon\n");
}
#if DISABLE_AUR
#else
} else if (key == "EnableAUR") {
if (val.get_boolean ()) {
data.append ("EnableAUR\n");
@@ -266,6 +309,15 @@ namespace Pamac {
} else {
data.append ("#CheckAURUpdates\n");
}
#endif
} else if (key == "KeepNumPackages") {
data.append ("KeepNumPackages = %llu\n".printf (val.get_uint64 ()));
} else if (key == "OnlyRmUninstalled") {
if (val.get_boolean ()) {
data.append ("OnlyRmUninstalled\n");
} else {
data.append ("#OnlyRmUninstalled\n");
}
}
}
}

View File

@@ -427,12 +427,12 @@ namespace Pamac {
});
}
public void clean_cache (uint keep_nb, bool only_uninstalled, GLib.BusName sender) {
public void clean_cache (uint64 keep_nb, bool only_uninstalled, GLib.BusName sender) {
check_authorization.begin (sender, (obj, res) => {
bool authorized = check_authorization.end (res);
if (authorized) {
string[] commands = {"paccache", "-rq"};
commands += "-k%u".printf (keep_nb);
string[] commands = {"paccache", "--nocolor", "-rq"};
commands += "-k%llu".printf (keep_nb);
if (only_uninstalled) {
commands += "-u";
}

View File

@@ -7,13 +7,13 @@ set (GETTEXT_PACKAGE "pamac")
set (RELEASE_NAME "pamac")
set (CMAKE_C_FLAGS "")
set (PREFIX ${CMAKE_INSTALL_PREFIX})
set (VERSION "6.0.0")
set (VERSION "6.1.0")
set (TESTSRCDIR "${CMAKE_SOURCE_DIR}")
set (DOLLAR "$")
configure_file (${CMAKE_SOURCE_DIR}/src/pamac-tray/Config.vala.base ${CMAKE_BINARY_DIR}/src/pamac-tray/Config.vala)
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
set (VERSION "6.0.0")
set (VERSION "6.1.0")
add_definitions (${DEPS_CFLAGS})
include_directories ( ${CMAKE_BINARY_DIR}/src ${CMAKE_BINARY_DIR}/src/aur )
link_libraries ( ${DEPS_LIBRARIES} -lPamac -lAUR )
@@ -78,6 +78,11 @@ OPTIONS
)
add_executable(pamac-tray ${VALA_C})
set ( pamac-tray_DEPENDENCIES ${pamac-tray_DEPENDENCIES} Pamac )
if (NOT DISABLE_AUR)
set ( pamac-tray_DEPENDENCIES ${pamac-tray_DEPENDENCIES} AUR )
endif ()
add_dependencies( pamac-tray ${pamac-tray_DEPENDENCIES} )
install(TARGETS
@@ -103,4 +108,3 @@ endif()
if (KDE_TRAY)
else ()
endif ()
include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeDepends.txt)

View File

@@ -7,17 +7,17 @@ set (GETTEXT_PACKAGE "pamac")
set (RELEASE_NAME "pamac")
set (CMAKE_C_FLAGS "")
set (PREFIX ${CMAKE_INSTALL_PREFIX})
set (VERSION "6.0.0")
set (VERSION "6.1.0")
set (TESTSRCDIR "${CMAKE_SOURCE_DIR}")
set (DOLLAR "$")
configure_file (${CMAKE_SOURCE_DIR}/src/pamac-user-daemon/Config.vala.base ${CMAKE_BINARY_DIR}/src/pamac-user-daemon/Config.vala)
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
set (VERSION "6.0.0")
set (VERSION "6.1.0")
add_definitions (${DEPS_CFLAGS})
include_directories ( ${CMAKE_BINARY_DIR}/src/aur ${CMAKE_BINARY_DIR}/src )
link_libraries ( ${DEPS_LIBRARIES} -lAUR -lPamac )
link_directories ( ${DEPS_LIBRARY_DIRS} ${CMAKE_BINARY_DIR}/src/aur ${CMAKE_BINARY_DIR}/src )
include_directories ( ${CMAKE_BINARY_DIR}/src ${CMAKE_BINARY_DIR}/src/aur )
link_libraries ( ${DEPS_LIBRARIES} -lPamac -lAUR )
link_directories ( ${DEPS_LIBRARY_DIRS} ${CMAKE_BINARY_DIR}/src ${CMAKE_BINARY_DIR}/src/aur )
find_package (Vala REQUIRED)
include (ValaVersion)
ensure_vala_version ("0.38" MINIMUM)
@@ -36,8 +36,10 @@ set (APP_SOURCES ${APP_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/Config.vala)
set (APP_SOURCES ${APP_SOURCES} alpm_config.vala)
set (APP_SOURCES ${APP_SOURCES} user_daemon.vala)
set (CUSTOM_VAPIS_LIST ${CUSTOM_VAPIS_LIST} ${CMAKE_BINARY_DIR}/src/aur/AUR.vapi)
set (CUSTOM_VAPIS_LIST ${CUSTOM_VAPIS_LIST} ${CMAKE_BINARY_DIR}/src/Pamac.vapi)
if (NOT DISABLE_AUR)
set (CUSTOM_VAPIS_LIST ${CUSTOM_VAPIS_LIST} ${CMAKE_BINARY_DIR}/src/aur/AUR.vapi)
endif ()
if (DISABLE_AUR)
set (COMPILE_OPTIONS ${COMPILE_OPTIONS} -D DISABLE_AUR)
@@ -67,6 +69,11 @@ OPTIONS
)
add_executable(pamac-user-daemon ${VALA_C})
set ( pamac-user-daemon_DEPENDENCIES ${pamac-user-daemon_DEPENDENCIES} Pamac )
if (NOT DISABLE_AUR)
set ( pamac-user-daemon_DEPENDENCIES ${pamac-user-daemon_DEPENDENCIES} AUR )
endif ()
add_dependencies( pamac-user-daemon ${pamac-user-daemon_DEPENDENCIES} )
install(TARGETS
@@ -89,4 +96,3 @@ if(HAVE_VALADOC)
${CMAKE_INSTALL_DATAROOTDIR}/doc/pamac
)
endif()
include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeDepends.txt)

View File

@@ -33,6 +33,8 @@ namespace Pamac {
public string aur_build_dir { get; private set; }
public bool check_aur_updates { get; private set; }
#endif
public uint64 keep_num_pkgs { get; private set; }
public bool rm_only_uninstalled { get; private set; }
public unowned HashTable<string,string> environment_variables {
get {
return _environment_variables;
@@ -81,6 +83,8 @@ namespace Pamac {
aur_build_dir = "/tmp";
check_aur_updates = false;
#endif
keep_num_pkgs = 3;
rm_only_uninstalled = false;
parse_file (conf_path);
}
@@ -127,6 +131,13 @@ namespace Pamac {
} else if (key == "CheckAURUpdates") {
check_aur_updates = true;
#endif
} else if (key == "KeepNumPackages") {
if (splitted.length == 2) {
unowned string val = splitted[1]._strip ();
keep_num_pkgs = uint64.parse (val);
}
} else if (key == "OnlyRmUninstalled") {
rm_only_uninstalled = true;
}
}
} catch (GLib.Error e) {

View File

@@ -103,6 +103,8 @@ namespace Pamac {
previous_refresh_period = transaction.refresh_period;
}
no_update_hide_icon_checkbutton.active = transaction.no_update_hide_icon;
cache_keep_nb_spin_button.value = transaction.keep_num_pkgs;
cache_only_uninstalled_checkbutton.active = transaction.rm_only_uninstalled;
// populate ignorepkgs_liststore
ignorepkgs_liststore = new Gtk.ListStore (1, typeof (string));
@@ -116,6 +118,8 @@ namespace Pamac {
check_updates_button.state_set.connect (on_check_updates_button_state_set);
refresh_period_spin_button.value_changed.connect (on_refresh_period_spin_button_value_changed);
no_update_hide_icon_checkbutton.toggled.connect (on_no_update_hide_icon_checkbutton_toggled);
cache_keep_nb_spin_button.value_changed.connect (on_cache_keep_nb_spin_button_value_changed);
cache_only_uninstalled_checkbutton.toggled.connect (on_cache_only_uninstalled_checkbutton_toggled);
transaction.write_pamac_config_finished.connect (on_write_pamac_config_finished);
AlpmPackage pkg = transaction.find_installed_satisfier ("pacman-mirrors");
@@ -197,6 +201,19 @@ namespace Pamac {
transaction.start_write_pamac_config (new_pamac_conf);
}
void on_cache_keep_nb_spin_button_value_changed () {
var new_pamac_conf = new HashTable<string,Variant> (str_hash, str_equal);
new_pamac_conf.insert ("KeepNumPackages", new Variant.uint64 (cache_keep_nb_spin_button.get_value_as_int ()));
transaction.start_write_pamac_config (new_pamac_conf);
}
void on_cache_only_uninstalled_checkbutton_toggled () {
var new_pamac_conf = new HashTable<string,Variant> (str_hash, str_equal);
new_pamac_conf.insert ("OnlyRmUninstalled", new Variant.boolean (cache_only_uninstalled_checkbutton.active));
transaction.start_write_pamac_config (new_pamac_conf);
}
void on_no_update_hide_icon_checkbutton_toggled () {
var new_pamac_conf = new HashTable<string,Variant> (str_hash, str_equal);
new_pamac_conf.insert ("NoUpdateHideIcon", new Variant.boolean (no_update_hide_icon_checkbutton.active));
@@ -399,8 +416,7 @@ namespace Pamac {
[GtkCallback]
void on_cache_clean_button_clicked () {
transaction.clean_cache ((uint) cache_keep_nb_spin_button.get_value_as_int (),
cache_only_uninstalled_checkbutton.active);
transaction.clean_cache (transaction.keep_num_pkgs, transaction.rm_only_uninstalled);
}
}
}

View File

@@ -18,6 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//using Math
namespace Pamac {
[DBus (name = "org.pamac.user")]
interface UserDaemon : Object {
@@ -72,7 +74,7 @@ namespace Pamac {
public abstract void start_write_alpm_config (HashTable<string,Variant> new_alpm_conf) throws IOError;
public abstract void start_write_mirrors_config (HashTable<string,Variant> new_mirrors_conf) throws IOError;
public abstract void start_generate_mirrors_list () throws IOError;
public abstract void clean_cache (uint keep_nb, bool only_uninstalled) throws IOError;
public abstract void clean_cache (uint64 keep_nb, bool only_uninstalled) throws IOError;
public abstract void start_set_pkgreason (string pkgname, uint reason) throws IOError;
public abstract void start_refresh (bool force) throws IOError;
public abstract void start_sysupgrade_prepare (bool enable_downgrade, string[] temporary_ignorepkgs) throws IOError;
@@ -142,6 +144,8 @@ namespace Pamac {
public bool search_aur { get { return pamac_config.search_aur; } }
public string aur_build_dir { get { return pamac_config.aur_build_dir; } }
#endif
public uint64 keep_num_pkgs { get { return pamac_config.keep_num_pkgs; } }
public bool rm_only_uninstalled { get { return pamac_config.rm_only_uninstalled; } }
public unowned GLib.HashTable<string,string> environment_variables { get {return pamac_config.environment_variables; } }
public bool no_update_hide_icon { get { return pamac_config.no_update_hide_icon; } }
public bool recurse { get { return pamac_config.recurse; } }
@@ -503,7 +507,7 @@ namespace Pamac {
}
}
public void clean_cache (uint keep_nb, bool only_uninstalled) {
public void clean_cache (uint64 keep_nb, bool only_uninstalled) {
try {
system_daemon.clean_cache (keep_nb, only_uninstalled);
} catch (IOError e) {