summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e1e29329b31e2a29bd7b9693d1d6c0a4d35149c6 (plain)
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# Maintainer: trougnouf (Benoit Brummer) <trougnouf at gmail dot com>
# Last images added on 2020-08-16

pkgname="trougnouf-backgrounds"
pkgver=2.0
pkgrel=2
pkgdesc="Wallpapers made of photographs posted by User:Trougnouf on Wikimedia Commons, with GNOME integration and transitions built-in to match the time pictures were taken"
url='https://commons.wikimedia.org/wiki/User:Trougnouf'
_url='https://commons.wikimedia.org/wiki/Special:Redirect/file/'
makedepends=()
license=('CCPL')
arch=('any')

_images=(
    'Stuor_Dáhtá_lake_along_the_Kungsleden_trail_during_golden_hour_in_Kvikkjokk-Kabla_fjällurskog_(DSCF2557).jpg'
    'Mont_des_Arts_during_morning_civil_twilight_(DSCF7450).jpg'
    '1987,_European_year_of_the_environment_at_Place_Schuman_by_Fred_Bellefroid_and_Herman_Dottermans_(DSCF7552).jpg'
    'Tent_camping_along_the_Sulayr_trail_in_La_Taha,_Sierra_Nevada_National_Park_(DSCF5147).jpg'
    'Inside_an_abandoned_military_building_in_Fort_de_la_Chartreuse,_Liege,_Belgium_(DSCF3343).jpg'
    'Lemonnier_premetro_station_rails_tunnel_in_Brussels,_BE_(DSCF5655).jpg' # 12h21
	'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
	'The_village_of_Bubiòn_viewed_from_Plaza_Vieja_in_Capileira_(DSCF5824).jpg'
	'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'
	'Grassy_hill_and_a_cluster_of_trees_along_Sendero_Hoya_del_Portillo_in_La_Taha,_Sierra_Nevada_National_Park_(DSCF5122).jpg' # 17h12
	'Tunnel_Belliard,_coming_out_on_Rue_de_la_Loi.jpg'
	'View_of_Greenock_from_Auchmountain_Road_(Inverclyde,_Scotland,_DSCF9281).jpg'
	'Container_cranes_at_the_MPET-_MSC_PSA_European_Terminal_in_Port_of_Antwerp_(Kieldrecht,_Belgium)_during_the_sunset_civil_twilight_(DSCF3901).jpg'
	'A_cow_standing_near_Cortijo_de_Antonio_Quirante_during_golden_hour_in_Sierra_Nevada_National_Park_(DSCF5315).jpg' # 17h50
	'Botanical_Garden_of_Brussels_during_golden_hour_(DSCF8171).jpg' # 17h58
	'Common_loons_swimming_in_Swan_Lake_(DSCF3780).jpg'  # 18h09
	'Padjelantaleden_in_Stora_Sjöfallet_National_Park_(DSCF0981).jpg'
	'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
	'Western_moose_in_the_Bowron_Slough_(DSCF4301).jpg'  # 21h11
	'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
	'Ausulsjokk_stream_during_golden_hour_(DSCF3045-DSCF3072).jpg' #23h47
	'Campsite_38_in_Bowron_Lake_Provincial_Park_at_night_(DSCF3026).jpg'  # 23h49
	)


_stimes=(
    7800 # 3h46 to 5h56 = 130 minutes       Stuor_Dáhtá_lake_along_the_Kungsleden_trail_during_golden_hour_in_Kvikkjokk-Kabla_fjällurskog_(DSCF2557).jpg
    7560 # 5h56 to 8h02 = 126 minutes       Mont_des_Arts_during_morning_civil_twilight_(DSCF7450).jpg
    960  # 8h02 to 8h18 = 16 minutes        1987,_European_year_of_the_environment_at_Place_Schuman_by_Fred_Bellefroid_and_Herman_Dottermans_(DSCF7552).jpg
    7080 # 8h18 to 10h16 = 118 minutes      Tent_camping_along_the_Sulayr_trail_in_La_Taha,_Sierra_Nevada_National_Park_(DSCF5147).jpg
	7500 # 10h16 to 12h21 = 125 minutes     Inside_an_abandoned_military_building_in_Fort_de_la_Chartreuse,_Liege,_Belgium_(DSCF3343).jpg
	600  # 12h21 to 12h31 = 10 minutes      Lemonnier_premetro_station_rails_tunnel_in_Brussels,_BE_(DSCF5655).jpg
	2160 # 12h31 to 13h07 = 36 minutes      Pears_covered_in_snow_at_Marché_de_Boitsfort_(Belgium).jpg
	2580 # 13h07 to 13h50 = 43 minutes      Fagne_Tirifaye_with_the_Hill_river_in_Waimes,_Belgium_(DSCF3679).jpg
	1080 # 13h50 to 14h08 = 18 minutes      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
	720 # 14h08 to 14h20 = 12 minutes       Stawamus_Chief_Provincial_Park,_BC_(DSCF7828).jpg
	1080 # 14h20 to 14h38 = 18 minutes      Snowy_trees_on_the_GR-16_between_Membre_and_Vresse-sur-Semois_(DSCF4800).jpg
	1080 # 14h38 to 14h56 = 18 minutes      Pipes_in_the_water_treatment_plant_of_an_abandoned_steel_factory_in_Oupeye,_Belgium_(DSCF3276).jpg
	2040 # 14h56 to 15h30 = 34 minutes      Water_treatment_plant_in_an_abandoned_steel_factory_in_Oupeye,_Belgium_(DSCF3285).jpg
	780  # 15h30 to 15h43 = 13 minutes      A_tree_South_of_Doel,_Belgium_(DSCF3811).jpg
	2280 # 15h43 to 16h21 = 38 minutes      The_village_of_Bubiòn_viewed_from_Plaza_Vieja_in_Capileira_(DSCF5824).jpg
	840  # 16h21 to 16h35 = 14 minutes      Lac_de_Virelles_(frozen),_Chimay_(DSC_0251).jpg
	2220 # 16h35 to 17h12 = 37 minutes      Street_art_in_the_tunnel_at_Rue_des_Tanneurs_under_the_railway_(Brussels,_Belgium).jpg
	240  # 17h12 to 17h16 = 4 minutes       Grassy_hill_and_a_cluster_of_trees_along_Sendero_Hoya_del_Portillo_in_La_Taha,_Sierra_Nevada_National_Park_(DSCF5122).jpg
	1020 # 17h16 to 17h33 = 17 minutes      Tunnel_Belliard,_coming_out_on_Rue_de_la_Loi.jpg
	900  # 17h33 to 17h48 = 15 minutes      View_of_Greenock_from_Auchmountain_Road_(Inverclyde,_Scotland,_DSCF9281).jpg
	120  # 17h48 to 17h50 = 2 minutes       Container_cranes_at_the_MPET-_MSC_PSA_European_Terminal_in_Port_of_Antwerp_(Kieldrecht,_Belgium)_during_the_sunset_civil_twilight_(DSCF3901).jpg
	480  # 17h50 to 17h58 = 8 minutes       A_cow_standing_near_Cortijo_de_Antonio_Quirante_during_golden_hour_in_Sierra_Nevada_National_Park_(DSCF5315).jpg
	660  # 17h58 to 18h09 = 11 minutes      Botanical_Garden_of_Brussels_during_golden_hour_(DSCF8171).jpg
	1980 # 18h09 to 18h42 = 33 minutes      Common_loons_swimming_in_Swan_Lake_(DSCF3780).jpg
	4380 # 18h42 to 19h55 = 73 minutes      Padjelantaleden_in_Stora_Sjöfallet_National_Park_(DSCF0981).jpg
	1800 # 19h55 to 20h25 = 30 minutes      Beginning_of_Grande_Randonnée_en_Haute_Ardennes,_BE.jpg
	1800 # 20h25 to 20h55 = 30 minutes      Garden_of_Kunstberg_viewed_from_Mont_des_Arts_during_nautical_twilight_(DSCF1028).jpg
	360 # 20h55 to 21h01 = 6min             Reflected_trees_over_Babcock_Lake_(DSCF3423).jpg
	600 # 21h01 to 21h11 = 10 minutes       Isaac_Lake_during_golden_hour,_moments_before_a_storm_(DSCF2631).jpg
	1980 # 21h11 to 21h44 = 33 minutes      Western_moose_in_the_Bowron_Slough_(DSCF4301).jpg
	2400 # 21h44 to 22h24 = 40min           Civil_twilight_sunset_over_Sandy_Lake_(DSCF2996).jpg
	1320 # 22h24 to 22h46 = 22min           Nautical_twilight_sunset_over_Sandy_Lake_(DSCF3005).jpg
	3660 # 22h46 to 23h47 = 61 minutes      Antwerpen-Centraal_railway_station_platform_21,_Belgium_(DSCF4760).jpg
	120 # 23h47 to 23h49 = 2 minutes        Ausulsjokk stream during golden hour (DSCF3045-DSCF3072).jpg
	14220 # 23h49 to 3h46 = 237 min         Campsite_38_in_Bowron_Lake_Provincial_Park_at_night_(DSCF3026).jpg
)
	
sha256sums=('4e51508df22826986f7d6aafdf43db7178b7615c4bd77bb9f68c0aefa8211990'
            '2f8b487dc492033d8559808b78aaa52f1bee2d3e76ed2e77e8bb2cda43daa72e'
            '578d1aec14fe9a686dc86af9ed4df4eeacf3f851b681e3800cd1bfba4b5b6684'
            'c9fd7d91284b2dbbc094b66f4ae816203f429da82e13985f6545372d36c4dc3a'
            '60da898f8fb43491594e7466f44294db43795d61de124f590eb2be2d42ea208a'
            'ea23392a1914371d3fe41751bf14c7a3341d4d7c5c87c712150e21fbcaaa9dd7'
            '0381dac0c5cfdb7d3068d9758222708fcc281f4b45d115d93ed524894d723ccd'
            '34e13f84a99c20b7ba7280db25d6993675b17f953a327c144e57ad04abefd08f'
            '4890081d1a7cdacb036da85e54f900c5effc40741c2a76816ad316b41931ad2b'
            '799cf4bd62c5ac685acf28fe0fd8555db2fe318020767cc8dee3e377abb18a68'
            '14e555f429f2e3e759be419a92f73f386891865c3cc2ff635d62a2b4a966fd2f'
            'ed2e76aedadc5e776fe8c350f1120cc3879d1888b33c9a898d85133dcc8165c9'
            '563a2acab1c80c2ad4f0f60cc514811191c25406c416415aea9b51151462ef58'
            'f5e476019deb0af38230da66a7749527001cb32f1f101966ab60ae082a38870b'
            '83abbdf27eb7aabd0cabae2e5594447bdd2ffc6a065fb7d85525f848bcc1bd4c'
            '57222827c856252af6631acd494fb6739130b7a8f5fa0b1f45ec405c72f6a4a5'
            'cf08f4598bd569eb8df860a83fd44110f5a25282e508732e924de1c3fab581c2'
            'a676e4e7fd3f4d8308182ce1660d7bd45757ab00a91694c9dff5c0a625783c5f'
            '0f7fed8930d452f4355d1f9026aeedcc74587a7344c9758959de0b329fa08e5e'
            'a636ab97fe31f77be0dc86591e854fbd082716ad7a54dbbb97a883ce29927005'
            '21ca6228fa574de64975fb48306d59e98f345fcd75a2c5571d89216fa3ba8aa6'
            '59e4d82d571f25a4ccf17183589e8e9a7cf5d42404f4e3e47884fc38da804ef6'
            '7573b75f22be885007de9254aab046139237a111b51b7826dd882d734c2be559'
            '64534906ebe5d086aa5a0d96eb53e188290cface9689a56f2730ecb3927212b0'
            '70cc32f1f7c3d1c53b30002af9b5d148860cb6d41bf928556b43bd1d338e4a92'
            '514845799c8e44b4faaeda29420cb0f2de708ed722f99ce10627704a8d6d6328'
            'c609f60318d57135e43314a81ff5a95c9b8290190d18bb5cb0d720f1616b9f4a'
            '01bd043afb615dd379cf22ee353812ac976b92641d91b4af32d5a169bbd4665c'
            '85159d35fe2fdf70d0f13397097b3704d20643261e7196ff9a613ae77877fa89'
            '4e3af24a5800706fa7d0d3648770db90f6b4f8ea16fdbb5155db9781e5cff1a7'
            '47c6e369285bce4e526bfd3f3a73ed11b715665a76ba6f6c14f6679f43da155d'
            'a0731a8b1a523ed5734a402e5ce32ffec2c1655fda10010e4a6ee6785cd4a211'
            '3411929c2eb43edbc190dbb694f32b8257b13f953278f39e54a70178ca035e1c'
            '6d6f38aab4e84b430d97d5864ce47cdba158dc5075d5aee1b9d9b9d96a39c2aa'
            '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>2019</year>
    <month>07</month>
    <day>09</day>
    <hour>3</hour>
    <minute>46</minute>
    <second>55</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"
}