diff options
author | John A Ginis | 2016-09-21 19:45:35 +0300 |
---|---|---|
committer | John A Ginis | 2016-09-21 19:45:35 +0300 |
commit | b13680ea3a87dad97edcf5a7ca44741f89ee82f9 (patch) | |
tree | c60454816913a6e811341e23ea63bf871f269ac2 | |
parent | 57fcbbaa39aebf3b951ab07ed3fce263b9dfded4 (diff) | |
download | aur-b13680ea3a87dad97edcf5a7ca44741f89ee82f9.tar.gz |
per user cronorc
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 | ||||
-rw-r--r-- | cronograph-conky.install | 11 |
3 files changed, 11 insertions, 7 deletions
@@ -1,6 +1,6 @@ pkgbase = cronograph-conky pkgdesc = A free, conky clock widget for X which displays date, time and weather information - pkgver = 285.0df290c + pkgver = 292.771fdd1 pkgrel = 1 url = https://github.com/drxspace/cronoconky install = cronograph-conky.install @@ -2,7 +2,7 @@ pkgname=cronograph-conky _prjname=cronoconky -pkgver=285.0df290c +pkgver=292.771fdd1 pkgrel=1 pkgdesc="A free, conky clock widget for X which displays date, time and weather information" arch=('any') @@ -37,6 +37,9 @@ package() { ln -fs /opt/cronograph_blk/restart_crono.sh "${pkgdir}"/usr/local/bin/restart_crono ln -fs /opt/cronograph_blk/stop_crono.sh "${pkgdir}"/usr/local/bin/stop_crono + install -dm 755 "${pkgdir}"/usr/share/applications + cp "${srcdir}/${_prjname}"/cronograph_conky.desktop "${pkgdir}"/usr/share/applications + install -dm 755 "${pkgdir}"/etc/xdg/autostart cp "${srcdir}/${_prjname}"/cronograph_conky.desktop "${pkgdir}"/etc/xdg/autostart diff --git a/cronograph-conky.install b/cronograph-conky.install index 6e28ba70b225..87628ec8e3cd 100644 --- a/cronograph-conky.install +++ b/cronograph-conky.install @@ -1,6 +1,6 @@ post_install() { echo "Building font information cache files. Please wait..."; - fc-cache -f; + fc-cache "${pkgdir}"/usr/share/fonts/TTF/ttf-cronograph; echo ; echo -e "\e[37;46m┌────────────────────────────────────────────────────────────────────────┐\e[0m"; echo -e "\e[37;46m│\e[30m From now on, due to brevity, I'll call this project as “crono” \e[37m│\e[0m"; @@ -22,10 +22,9 @@ post_install() { echo -e "\e[37;41m│ \e[30;48;5;196m Instruction - TEMPERATURE UNIT \e[37;41m │\e[0m"; echo -e "\e[37;41m│ \e[97m· At first, visit: \e[1mhttps://www.yahoo.com/news/weather\e[21m and click on \e[37m │\e[0m"; echo -e "\e[37;41m│ \e[97m the link \e[1;7mChange location\e[21;27m to detect yours. The \e[1mWOEID\e[21m is the number \e[37m │\e[0m"; - echo -e "\e[37;41m│ \e[97m appears at the right of the URL, next to the dash. Next, type the \e[37m │\e[0m"; - echo -e "\e[37;41m│ \e[97m command: \e[37m │\e[0m"; - echo -e "\e[37;41m│ \e[97m ‑ $ \e[1msudo sed -i 's/WOEID=.*/WOEID=<WOEID-code-of-yours>/'\e[21m \e[37m │\e[0m"; - echo -e "\e[37;41m│ \e[97m \e[1m/opt/cronograph_blk/yahooweather/forecasts.sh\e[21m \e[37m │\e[0m"; + echo -e "\e[37;41m│ \e[97m appears at the right of the URL, next to the dash. Next, after the \e[37m │\e[0m"; + echo -e "\e[37;41m│ \e[97m “crono” application has run once, use your favorite editor to edit \e[37m │\e[0m"; + echo -e "\e[37;41m│ \e[97m the file \e[1m~/.config/cronograph_blk/cronorc\e[21m and change it properly. \e[37m │\e[0m"; echo -e "\e[37;41m│ \e[97m· If you live in a country that uses the imperial system of units then\e[37m │\e[0m"; echo -e "\e[37;41m│ \e[97m you have to enter the following two commands in the terminal so you \e[37m │\e[0m"; echo -e "\e[37;41m│ \e[97m can see, all objects display a temperature, in “fahrenheit” degree \e[37m │\e[0m"; @@ -65,6 +64,8 @@ post_upgrade() { echo -e "\e[30;107m│ \e[47m I N S T R U C T I O N \e[30;107m │\e[0m"; echo -e "\e[30;107m│ · You can now run (if you want) in terminal the command: │\e[0m"; echo -e "\e[30;107m│ ‑ $ \e[1mstart_crono\e[21m │\e[0m"; + echo -e "\e[30;107m│ · Use your favorite editor to edit the file: │\e[0m"; + echo -e "\e[30;107m│ \e[1m~/.config/cronograph_blk/cronorc\e[21m and change it properly. │\e[0m"; echo -e "\e[30;107m└────────────────────────────────────────────────────────────────────────┘\e[0m"; echo ; } |