diff options
author | Benoit Brummer | 2018-06-02 04:28:24 +0200 |
---|---|---|
committer | Benoit Brummer | 2018-06-02 04:28:24 +0200 |
commit | 9e59aeac8ed3aae40a2dcda7e8a78e566339212a (patch) | |
tree | d9c7f75c6db66648bb6d0654321b0616cb65cf38 | |
parent | 1680d4acead4cfc60f5768b41a714f355c7d4027 (diff) | |
download | aur-9e59aeac8ed3aae40a2dcda7e8a78e566339212a.tar.gz |
Generate .xml files from template, add a pigeon
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 233 |
2 files changed, 51 insertions, 188 deletions
@@ -1,7 +1,7 @@ pkgbase = trougnouf-backgrounds pkgdesc = Wallpapers created by User:Trougnouf, with gnome integration and transitions built-in - pkgver = 1.2 - pkgrel = 5 + pkgver = 1.3 + pkgrel = 1 url = https://commons.wikimedia.org/wiki/User:Trougnouf arch = any license = CCPL @@ -9,6 +9,7 @@ pkgbase = trougnouf-backgrounds source = https://commons.wikimedia.org/wiki/Special:Redirect/file/Pears_covered_in_snow_at_Marché_de_Boitsfort_(Belgium).jpg source = https://commons.wikimedia.org/wiki/Special:Redirect/file/Fagne_Tirifaye_with_the_Hill_river_in_Waimes,_Belgium_(DSCF3679).jpg source = https://commons.wikimedia.org/wiki/Special:Redirect/file/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 + source = https://commons.wikimedia.org/wiki/Special:Redirect/file/Rock_dove_(Columba_livia)_standing_on_place_de_la_Bourse,_Brussels,_Belgium_(DSCF4429).jpg source = https://commons.wikimedia.org/wiki/Special:Redirect/file/Pipes_in_the_water_treatment_plant_of_an_abandoned_steel_factory_in_Oupeye,_Belgium_(DSCF3276).jpg source = https://commons.wikimedia.org/wiki/Special:Redirect/file/Water_treatment_plant_in_an_abandoned_steel_factory_in_Oupeye,_Belgium_(DSCF3285).jpg source = https://commons.wikimedia.org/wiki/Special:Redirect/file/A_tree_South_of_Doel,_Belgium_(DSCF3811).jpg @@ -22,6 +23,7 @@ pkgbase = trougnouf-backgrounds sha256sums = 0381dac0c5cfdb7d3068d9758222708fcc281f4b45d115d93ed524894d723ccd sha256sums = 34e13f84a99c20b7ba7280db25d6993675b17f953a327c144e57ad04abefd08f sha256sums = 4890081d1a7cdacb036da85e54f900c5effc40741c2a76816ad316b41931ad2b + sha256sums = df2736eca3d2bd409aecc2cda9ed1cac51122ac0bd5347b17f7074688147931e sha256sums = ed2e76aedadc5e776fe8c350f1120cc3879d1888b33c9a898d85133dcc8165c9 sha256sums = 631f15689afb347757dedf3f9cc9e8b4dcb152cfffd9dbcb31d78d7955c5949e sha256sums = f5e476019deb0af38230da66a7749527001cb32f1f101966ab60ae082a38870b @@ -1,19 +1,21 @@ # Maintainer: trougnouf (Benoit Brummer) <trougnouf at gmail dot com> -# Last images added on 2018-05-02 +# Last images added on 2018-06-02 pkgname="trougnouf-backgrounds" -pkgver=1.2 -pkgrel=5 +pkgver=1.3 +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' + 'Rock_dove_(Columba_livia)_standing_on_place_de_la_Bourse,_Brussels,_Belgium_(DSCF4429).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' 'A_tree_South_of_Doel,_Belgium_(DSCF3811).jpg' @@ -25,12 +27,28 @@ _images=('Inside_an_abandoned_military_building_in_Fort_de_la_Chartreuse,_Liege, 'Antwerpen-Centraal_railway_station_platform_21,_Belgium_(DSCF4760).jpg' ) -source=("${_images[@]/#/${_url}}") +_stimes=( + 8100 # 10h16 to 12h31 = 135 minutes + 2160 # 12h31 to 13h07 = 36 minutes + 2580 # 13h07 to 13h50 = 43 minutes + 1980 # 13h50 to 14h23 = 33 minutes + 900 # 14h23 to 14h38 = 15 minutes + 1080 # 14h38 to 14h56 = 18 minutes + 2040 # 14h56 to 15h30 = 34 minutes + 3900 # 15h30 to 16h35 = 65 minutes + 2460 # 16h35 to 17h16 = 41 minutes + 1920 # 17h16 to 17h48 = 32 minutes + 1080 # 17h48 to 18h06 = 18 minutes + 6540 # 18h06 to 19h55 = 109 minutes + 10260 # 19h55 to 22h46 = 171 minutes + 41400 # 22h46 to 10h16 = 690 minutes +) sha256sums=('816c37d71c5b3594aec28be8fe81699441007d9bbd1f240137f56691d2af51ad' '0381dac0c5cfdb7d3068d9758222708fcc281f4b45d115d93ed524894d723ccd' '34e13f84a99c20b7ba7280db25d6993675b17f953a327c144e57ad04abefd08f' '4890081d1a7cdacb036da85e54f900c5effc40741c2a76816ad316b41931ad2b' + 'df2736eca3d2bd409aecc2cda9ed1cac51122ac0bd5347b17f7074688147931e' 'ed2e76aedadc5e776fe8c350f1120cc3879d1888b33c9a898d85133dcc8165c9' '631f15689afb347757dedf3f9cc9e8b4dcb152cfffd9dbcb31d78d7955c5949e' 'f5e476019deb0af38230da66a7749527001cb32f1f101966ab60ae082a38870b' @@ -41,14 +59,16 @@ sha256sums=('816c37d71c5b3594aec28be8fe81699441007d9bbd1f240137f56691d2af51ad' 'decdcae46f94604ae65c0cc212e6eddd3eba16ec57613755afe5c75ab833cc1c' '3411929c2eb43edbc190dbb694f32b8257b13f953278f39e54a70178ca035e1c') +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 "<background> +echo " +<!-- Author: trougnouf (Benoit Brummer), license: CC-BY-SA --> +<background> <starttime> <year>2011</year> <month>11</month> @@ -56,97 +76,20 @@ package() { <hour>10</hour> <minute>16</minute> <second>00</second> - </starttime> - -<!-- This animation will start at 10h16. --> - -<!-- 10h16 to 12h31 = 135 minutes--> -<static> -<duration>8100</duration> -<file>/usr/share/backgrounds/trougnouf/${_images[0]}</file> -</static> - -<!-- 12h31 to 13h07 = 36 minutes --> -<static> -<duration>2160</duration> -<file>/usr/share/backgrounds/trougnouf/${_images[1]}</file> -</static> - -<!-- 13h07 to 13h50 = 43 minutes --> -<static> -<duration>2580</duration> -<file>/usr/share/backgrounds/trougnouf/${_images[2]}</file> -</static> - -<!-- 13h50 to 14h23 = 33 minutes --> -<static> -<duration>1980</duration> -<file>/usr/share/backgrounds/trougnouf/${_images[3]}</file> -</static> - -<!-- 14h23 to 14h56 = 33 minutes --> -<static> -<duration>1980</duration> -<file>/usr/share/backgrounds/trougnouf/${_images[4]}</file> -</static> - -<!-- 14h56 to 15h30 = 34 minutes --> -<static> -<duration>2040</duration> -<file>/usr/share/backgrounds/trougnouf/${_images[5]}</file> -</static> - -<!-- alt: 15h36: Parc_Seny_on_a_snowy_day,_entering_from_Rue_Charles_Lemaire_(Auderghem,_Belgium)_-_road.jpg --> - -<!-- 15h30 - 16h35 = 65 minutes --> -<static> -<duration>3900</duration> -<file>/usr/share/backgrounds/trougnouf/${_images[6]}</file> -</static> - -<!-- alt: 16h44: View through a broken window from a room in Sanatorium du Basil, Stoumont, Belgium (DSCF3542,DSCF3545).jpg --> - -<!-- 16h35 to 17h16 = 41 minutes --> -<static> -<duration>2460</duration> -<file>/usr/share/backgrounds/trougnouf/${_images[7]}</file> -</static> - -<!-- 17h16 to 17h48 = 32 minutes --> -<static> -<duration>1920</duration> -<file>/usr/share/backgrounds/trougnouf/${_images[8]}</file> -</static> - -<!-- 17h48 to 18h06 = 18 minutes --> -<static> -<duration>1080</duration> -<file>/usr/share/backgrounds/trougnouf/${_images[9]}</file> -</static> - -<!-- 18h06 to 19h55 = 109 minutes --> -<static> -<duration>6540</duration> -<file>/usr/share/backgrounds/trougnouf/${_images[10]}</file> -</static> - -<!-- 19h55 to 22h46 = 171 minutes --> -<static> -<duration>10260</duration> -<file>/usr/share/backgrounds/trougnouf/${_images[11]}</file> -</static> - -<!-- 22h46 to 10h16 = 690 minutes --> -<static> -<duration>41400</duration> -<file>/usr/share/backgrounds/trougnouf/${_images[12]}</file> -</static> -</background>" > "${pkgdir}/usr/share/backgrounds/trougnouf/trougnouf-timed.xml" - - + </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> @@ -154,98 +97,16 @@ echo "<?xml version=\"1.0\"?> <options>zoom</options> <pcolor>#ffffff</pcolor> <scolor>#000000</scolor> - </wallpaper> - <wallpaper deleted=\"false\"> - <name>${_images[0]}</name> - <filename>/usr/share/backgrounds/trougnouf/${_images[0]}</filename> - <options>zoom</options> - <pcolor>#ffffff</pcolor> - <scolor>#000000</scolor> - </wallpaper> - <wallpaper deleted=\"false\"> - <name>${_images[1]}</name> - <filename>/usr/share/backgrounds/trougnouf/${_images[1]}</filename> - <options>zoom</options> - <pcolor>#ffffff</pcolor> - <scolor>#000000</scolor> - </wallpaper> - <wallpaper deleted=\"false\"> - <name>${_images[2]}</name> - <filename>/usr/share/backgrounds/trougnouf/${_images[2]}</filename> - <options>zoom</options> - <pcolor>#ffffff</pcolor> - <scolor>#000000</scolor> - </wallpaper> - <wallpaper deleted=\"false\"> - <name>${_images[3]}</name> - <filename>/usr/share/backgrounds/trougnouf/${_images[3]}</filename> - <options>zoom</options> - <pcolor>#ffffff</pcolor> - <scolor>#000000</scolor> - </wallpaper> - <wallpaper deleted=\"false\"> - <name>${_images[4]}</name> - <filename>/usr/share/backgrounds/trougnouf/${_images[4]}</filename> - <options>zoom</options> - <pcolor>#ffffff</pcolor> - <scolor>#000000</scolor> - </wallpaper> - <wallpaper deleted=\"false\"> - <name>${_images[5]}</name> - <filename>/usr/share/backgrounds/trougnouf/${_images[5]}</filename> + </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> - <wallpaper deleted=\"false\"> - <name>${_images[6]}</name> - <filename>/usr/share/backgrounds/trougnouf/${_images[6]}</filename> - <options>zoom</options> - <pcolor>#ffffff</pcolor> - <scolor>#000000</scolor> - </wallpaper> - <wallpaper deleted=\"false\"> - <name>${_images[7]}</name> - <filename>/usr/share/backgrounds/trougnouf/${_images[7]}</filename> - <options>zoom</options> - <pcolor>#ffffff</pcolor> - <scolor>#000000</scolor> - </wallpaper> - <wallpaper deleted=\"false\"> - <name>${_images[8]}</name> - <filename>/usr/share/backgrounds/trougnouf/${_images[8]}</filename> - <options>zoom</options> - <pcolor>#ffffff</pcolor> - <scolor>#000000</scolor> - </wallpaper> - <wallpaper deleted=\"false\"> - <name>${_images[9]}</name> - <filename>/usr/share/backgrounds/trougnouf/${_images[9]}</filename> - <options>zoom</options> - <pcolor>#ffffff</pcolor> - <scolor>#000000</scolor> - </wallpaper> - <wallpaper deleted=\"false\"> - <name>${_images[10]}</name> - <filename>/usr/share/backgrounds/trougnouf/${_images[10]}</filename> - <options>zoom</options> - <pcolor>#ffffff</pcolor> - <scolor>#000000</scolor> - </wallpaper> - <wallpaper deleted=\"false\"> - <name>${_images[11]}</name> - <filename>/usr/share/backgrounds/trougnouf/${_images[11]}</filename> - <options>zoom</options> - <pcolor>#ffffff</pcolor> - <scolor>#000000</scolor> - </wallpaper> - <wallpaper deleted=\"false\"> - <name>${_images[12]}</name> - <filename>/usr/share/backgrounds/trougnouf/${_images[12]}</filename> - <options>zoom</options> - <pcolor>#ffffff</pcolor> - <scolor>#000000</scolor> - </wallpaper> -</wallpapers>" > "${pkgdir}/usr/share/gnome-background-properties/trougnouf-backgrounds.xml" +</wallpaper>" >> "${pkgdir}/usr/share/gnome-background-properties/trougnouf-backgrounds.xml" +done +echo "</wallpapers>" >> "${pkgdir}/usr/share/gnome-background-properties/trougnouf-backgrounds.xml" } - |