1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
# Maintainer: trougnouf (Benoit Brummer) <trougnouf at gmail dot com>
# Last images added on 2019-01-03
pkgname="trougnouf-backgrounds"
pkgver=1.8
pkgrel=1
pkgdesc='Wallpapers created by User:Trougnouf, with gnome integration and transitions built-in'
url='https://commons.wikimedia.org/wiki/User:Trougnouf'
_url='https://commons.wikimedia.org/wiki/Special:Redirect/file/'
makedepends=()
license=('CCPL')
arch=('any')
_images=(
'Inside_an_abandoned_military_building_in_Fort_de_la_Chartreuse,_Liege,_Belgium_(DSCF3343).jpg'
'Pears_covered_in_snow_at_Marché_de_Boitsfort_(Belgium).jpg'
'Fagne_Tirifaye_with_the_Hill_river_in_Waimes,_Belgium_(DSCF3679).jpg'
'View_through_the_shattered_glass_of_a_door_in_the_SNCB_B22490_type-K3_carriage,_looking_at_a_yellow_H._Weyhausen_KG_backhoe_loader_in_As,_Belgium_(DSCF3088-hdr).jpg'
'Stawamus_Chief_Provincial_Park,_BC_(DSCF7828).jpg'
'Snowy_trees_on_the_GR-16_between_Membre_and_Vresse-sur-Semois_(DSCF4800).jpg'
'Pipes_in_the_water_treatment_plant_of_an_abandoned_steel_factory_in_Oupeye,_Belgium_(DSCF3276).jpg'
'Water_treatment_plant_in_an_abandoned_steel_factory_in_Oupeye,_Belgium_(DSCF3285).jpg' # 14h56 to 15h30
'A_tree_South_of_Doel,_Belgium_(DSCF3811).jpg' # 15h30 to 16h21
'Lac_de_Virelles_(frozen),_Chimay_(DSC_0251).jpg' # 16h21 to 16h35
'Street_art_in_the_tunnel_at_Rue_des_Tanneurs_under_the_railway_(Brussels,_Belgium).jpg'
'Tunnel_Belliard,_coming_out_on_Rue_de_la_Loi.jpg'
'Container_cranes_at_the_MPET-_MSC_PSA_European_Terminal_in_Port_of_Antwerp_(Kieldrecht,_Belgium)_during_the_sunset_civil_twilight_(DSCF3901).jpg'
'Common loons swimming in Swan Lake (DSCF3780).jpg' # 18h09
'Beginning_of_Grande_Randonnée_en_Haute_Ardennes,_BE.jpg' # 19h55 to 20h25 = 30 minutes
'Garden_of_Kunstberg_viewed_from_Mont_des_Arts_during_nautical_twilight_(DSCF1028).jpg' # 20h25 to 20h55 = 30 minutes
'Reflected trees over Babcock Lake (DSCF3423).jpg' # 20h55 to 21h01 = 6min
'Isaac Lake during golden hour, moments before a storm (DSCF2631).jpg' # 21h01
'Civil twilight sunset over Sandy Lake (DSCF2996).jpg' # 21h44
'Nautical twilight sunset over Sandy Lake (DSCF3005).jpg' # 22h24
'Antwerpen-Centraal_railway_station_platform_21,_Belgium_(DSCF4760).jpg' # 22h46 to 23h49 = 63 minutes
'Campsite 38 in Bowron Lake Provincial Park at night (DSCF3026).jpg' # 23h49
)
# missing:
# Moose in Bowron Lake Provincial Park, BC (DSCF3986).jpg 20h30
_stimes=(
8100 # 10h16 to 12h31 = 135 minutes
2160 # 12h31 to 13h07 = 36 minutes
2580 # 13h07 to 13h50 = 43 minutes
1080 # 13h50 to 14h08 = 18 minutes
720 # 14h08 to 14h20 = 12 minutes
1080 # 14h20 to 14h38 = 18 minutes
1080 # 14h38 to 14h56 = 18 minutes
2040 # 14h56 to 15h30 = 34 minutes
3060 # 15h30 to 16h21 = 51 minutes
840 # 16h21 to 16h35 = 14 minutes
2460 # 16h35 to 17h16 = 41 minutes
1920 # 17h16 to 17h48 = 32 minutes
1260 # 17h48 to 18h09 = 21 minutes
6360 # 18h09 to 19h55 = 106m
1800 # 19h55 to 20h25 = 30 minutes
1800 # 20h25 to 20h55 = 30 minutes
360 # 20h55 to 21h01 = 6min
2580 # 21h01 to 21h44 = 43min
2400 # 21h44 to 22h24 = 40min
1320 # 22h24 to 22h46 = 22min
3780 # 22h46 to 23h49 = 63 minutes
37620 # 23h49 to 10h16 = 627 min
)
sha256sums=('60da898f8fb43491594e7466f44294db43795d61de124f590eb2be2d42ea208a'
'0381dac0c5cfdb7d3068d9758222708fcc281f4b45d115d93ed524894d723ccd'
'34e13f84a99c20b7ba7280db25d6993675b17f953a327c144e57ad04abefd08f'
'4890081d1a7cdacb036da85e54f900c5effc40741c2a76816ad316b41931ad2b'
'799cf4bd62c5ac685acf28fe0fd8555db2fe318020767cc8dee3e377abb18a68'
'14e555f429f2e3e759be419a92f73f386891865c3cc2ff635d62a2b4a966fd2f'
'ed2e76aedadc5e776fe8c350f1120cc3879d1888b33c9a898d85133dcc8165c9'
'563a2acab1c80c2ad4f0f60cc514811191c25406c416415aea9b51151462ef58'
'f5e476019deb0af38230da66a7749527001cb32f1f101966ab60ae082a38870b'
'57222827c856252af6631acd494fb6739130b7a8f5fa0b1f45ec405c72f6a4a5'
'cf08f4598bd569eb8df860a83fd44110f5a25282e508732e924de1c3fab581c2'
'0f7fed8930d452f4355d1f9026aeedcc74587a7344c9758959de0b329fa08e5e'
'21ca6228fa574de64975fb48306d59e98f345fcd75a2c5571d89216fa3ba8aa6'
'64534906ebe5d086aa5a0d96eb53e188290cface9689a56f2730ecb3927212b0'
'514845799c8e44b4faaeda29420cb0f2de708ed722f99ce10627704a8d6d6328'
'c609f60318d57135e43314a81ff5a95c9b8290190d18bb5cb0d720f1616b9f4a'
'01bd043afb615dd379cf22ee353812ac976b92641d91b4af32d5a169bbd4665c'
'fbc2c154ab04039f256652085d5bad99672af1b6026647f56fc69cc04ebe2fe3'
'47c6e369285bce4e526bfd3f3a73ed11b715665a76ba6f6c14f6679f43da155d'
'a0731a8b1a523ed5734a402e5ce32ffec2c1655fda10010e4a6ee6785cd4a211'
'3411929c2eb43edbc190dbb694f32b8257b13f953278f39e54a70178ca035e1c'
'0957fdc226e9bbab8c6ef46192021a0f59f5506d0d120310d44edc168000d08f')
source=("${_images[@]/#/${_url}}")
package() {
mkdir -p "${pkgdir}/usr/share/backgrounds/trougnouf/"
mkdir -p "${pkgdir}/usr/share/gnome-background-properties"
cp ${srcdir}/*.jpg "${pkgdir}/usr/share/backgrounds/trougnouf/"
echo "
<!-- Author: trougnouf (Benoit Brummer), license: CC-BY-SA -->
<background>
<starttime>
<year>2018</year>
<month>01</month>
<day>29</day>
<hour>10</hour>
<minute>16</minute>
<second>32</second>
</starttime>" > "${pkgdir}/usr/share/backgrounds/trougnouf/trougnouf-timed.xml"
for i in `seq 0 $[${#_images[@]}-1]`
do
echo "
<static>
<duration>${_stimes[$i]}</duration>
<file>/usr/share/backgrounds/trougnouf/${_images[$i]}</file>
</static>" >> "${pkgdir}/usr/share/backgrounds/trougnouf/trougnouf-timed.xml"
done
echo '</background>' >> "${pkgdir}/usr/share/backgrounds/trougnouf/trougnouf-timed.xml"
echo "<?xml version=\"1.0\"?>
<!DOCTYPE wallpapers SYSTEM \"gnome-wp-list.dtd\">
<!-- Author: trougnouf (Benoit Brummer), license: CC-BY-SA -->
<wallpapers>
<wallpaper deleted=\"false\">
<name>trougnouf-backgrounds</name>
<filename>/usr/share/backgrounds/trougnouf/trougnouf-timed.xml</filename>
<options>zoom</options>
<pcolor>#ffffff</pcolor>
<scolor>#000000</scolor>
</wallpaper>" > "${pkgdir}/usr/share/gnome-background-properties/trougnouf-backgrounds.xml"
for _img in ${_images[@]}
do
echo "<wallpaper deleted=\"false\">
<name>${_img}</name>
<filename>/usr/share/backgrounds/trougnouf/${_img}</filename>
<options>zoom</options>
<pcolor>#ffffff</pcolor>
<scolor>#000000</scolor>
</wallpaper>" >> "${pkgdir}/usr/share/gnome-background-properties/trougnouf-backgrounds.xml"
done
echo "</wallpapers>" >> "${pkgdir}/usr/share/gnome-background-properties/trougnouf-backgrounds.xml"
}
|