summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoit Brummer2018-05-05 05:05:16 +0200
committerBenoit Brummer2018-05-05 05:05:16 +0200
commit1680d4acead4cfc60f5768b41a714f355c7d4027 (patch)
tree4f36a4bd4d7aabe80eb0e59619c243d8713625b2
parent59476f497c940e290beeed4db18ab6e358ed810d (diff)
downloadaur-1680d4acead4cfc60f5768b41a714f355c7d4027.tar.gz
Implement bash magic by /u/w1ldm4n
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD90
2 files changed, 44 insertions, 48 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0c8f0470c5eb..43c48ca674ab 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = trougnouf-backgrounds
pkgdesc = Wallpapers created by User:Trougnouf, with gnome integration and transitions built-in
pkgver = 1.2
- pkgrel = 4
+ pkgrel = 5
url = https://commons.wikimedia.org/wiki/User:Trougnouf
arch = any
license = CCPL
diff --git a/PKGBUILD b/PKGBUILD
index 53c89e867d69..fc0fa82b6694 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,16 @@
# Maintainer: trougnouf (Benoit Brummer) <trougnouf at gmail dot com>
-# Last modified on 2018-05-02
+# Last images added on 2018-05-02
pkgname="trougnouf-backgrounds"
pkgver=1.2
-pkgrel=4
+pkgrel=5
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'
+_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'
@@ -25,11 +25,7 @@ images=('Inside_an_abandoned_military_building_in_Fort_de_la_Chartreuse,_Liege,_
'Antwerpen-Centraal_railway_station_platform_21,_Belgium_(DSCF4760).jpg'
)
-source=("${_url}${images[0]}" "${_url}${images[1]}" "${_url}${images[2]}"
- "${_url}${images[3]}" "${_url}${images[4]}" "${_url}${images[5]}"
- "${_url}${images[6]}" "${_url}${images[7]}" "${_url}${images[8]}"
- "${_url}${images[9]}" "${_url}${images[10]}" "${_url}${images[11]}"
- "${_url}${images[12]}" )
+source=("${_images[@]/#/${_url}}")
sha256sums=('816c37d71c5b3594aec28be8fe81699441007d9bbd1f240137f56691d2af51ad'
'0381dac0c5cfdb7d3068d9758222708fcc281f4b45d115d93ed524894d723ccd'
@@ -67,37 +63,37 @@ package() {
<!-- 10h16 to 12h31 = 135 minutes-->
<static>
<duration>8100</duration>
-<file>/usr/share/backgrounds/trougnouf/${images[0]}</file>
+<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>
+<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>
+<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>
+<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>
+<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>
+<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 -->
@@ -105,7 +101,7 @@ package() {
<!-- 15h30 - 16h35 = 65 minutes -->
<static>
<duration>3900</duration>
-<file>/usr/share/backgrounds/trougnouf/${images[6]}</file>
+<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 -->
@@ -113,37 +109,37 @@ package() {
<!-- 16h35 to 17h16 = 41 minutes -->
<static>
<duration>2460</duration>
-<file>/usr/share/backgrounds/trougnouf/${images[7]}</file>
+<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>
+<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>
+<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>
+<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>
+<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>
+<file>/usr/share/backgrounds/trougnouf/${_images[12]}</file>
</static>
</background>" > "${pkgdir}/usr/share/backgrounds/trougnouf/trougnouf-timed.xml"
@@ -160,92 +156,92 @@ echo "<?xml version=\"1.0\"?>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted=\"false\">
- <name>${images[0]}</name>
- <filename>/usr/share/backgrounds/trougnouf/${images[0]}</filename>
+ <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>
+ <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>
+ <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>
+ <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>
+ <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>
+ <name>${_images[5]}</name>
+ <filename>/usr/share/backgrounds/trougnouf/${_images[5]}</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>
+ <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>
+ <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>
+ <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>
+ <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>
+ <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>
+ <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>
+ <name>${_images[12]}</name>
+ <filename>/usr/share/backgrounds/trougnouf/${_images[12]}</filename>
<options>zoom</options>
<pcolor>#ffffff</pcolor>
<scolor>#000000</scolor>