summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Pesch2020-04-23 20:58:17 +0200
committerMarkus Pesch2020-04-23 20:58:17 +0200
commitcd5d2e24d64729113940db53ce94fb3bfa187986 (patch)
tree3b3f02670adb6c2961ea4d2fba07e6d48cd75f04
downloadaur-cd5d2e24d64729113940db53ce94fb3bfa187986.tar.gz
Initial Commit
-rw-r--r--.SRCINFO12
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD62
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c2827acb96c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = ubuntu-backgrounds-bionic
+ pkgdesc = The backgrounds included in Ubuntu 18.04 bionic
+ pkgver = 18.04.1
+ pkgrel = 1
+ url = http://archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-wallpapers
+ arch = any
+ license = Commons Attribution-ShareAlike 3.0 Unported
+ source = http://archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-wallpapers/ubuntu-wallpapers_18.04.1.orig.tar.gz
+ sha256sums = e5f3286047f5abe2c2d63ec10cfbcd65ba47dfbe2fce51aede0d1f15b059809f
+
+pkgname = ubuntu-backgrounds-bionic
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..3814e4105a0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*
+!PKGBUILD
+!.gitignore
+!.editorconfig
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7f151b8acef
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,62 @@
+# Maintainer: Markus Pesch <markus.pesch@cryptic.systems>
+
+pkgname=ubuntu-backgrounds-bionic
+pkgver=18.04.1
+pkgrel=1
+pkgdesc="The backgrounds included in Ubuntu 18.04 bionic"
+license=('Commons Attribution-ShareAlike 3.0 Unported')
+arch=('any')
+url="http://archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-wallpapers"
+source=("http://archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-wallpapers/ubuntu-wallpapers_${pkgver}.orig.tar.gz")
+sha256sums=('e5f3286047f5abe2c2d63ec10cfbcd65ba47dfbe2fce51aede0d1f15b059809f')
+
+package() {
+
+ # encode to uft8
+ mv ${srcdir}/ubuntu-wallpapers-${pkgver}/Cath├ędrale_Marie-Rheine-du-Monde_by_Thierry_Pon.jpg ${srcdir}/ubuntu-wallpapers-${pkgver}/Cathedrale_Marie-Rheine-du-Monde_by_Thierry_Pon.jpg
+
+ # move only wallpapers which are new in bionic
+ wallpapers=(
+ "Cathedrale_Marie-Rheine-du-Monde_by_Thierry_Pon.jpg"
+ "Crocus_Wallpaper_by_Roy_Tanck.jpg"
+ "Definitive_Light_Zen_Orange_by_Pierre_Cante.jpg"
+ "El_Haouaria_by_Nusi_Nusi.jpg"
+ "Halifax_Sunset_by_Vlad_Drobinin.jpg"
+ "Manhattan_Sunset_by_Giacomo_Ferroni.jpg"
+ "On_top_of_the_Rubihorn_by_Matthias_Niess.jpg"
+ "Raindrops_On_The_Table_by_Alex_Fazit.jpg"
+ "Ross_Jones_Rockpool_(Sydney)_by_Chris_Carignan.jpg"
+ "Spices_in_Athens_by_Makis_Chourdakis.jpg"
+ "This_Is_Bionic_Beaver_by_Pierre_Cante.jpg"
+ "Wall_with_door_on_Gozo_by_Matthias_Niess.jpg"
+ )
+
+ for wallaper in ${wallpapers[@]}; do
+ install -D --mode 644 ${srcdir}/ubuntu-wallpapers-${pkgver}/${wallaper} ${pkgdir}/usr/share/backgrounds/${pkgname}/${wallaper}
+ done
+
+ # edit xml
+ # - replace directory, use a more detailed directory path
+ # - fix xml tag
+ sed \
+ --in-place \
+ --expression "s#/usr/share/backgrounds/contest/bionic.xml#/usr/share/gnome-background-properties/bionic-wallpapers.xml#" \
+ --expression "s#/usr/share/backgrounds#/usr/share/backgrounds/${pkgname}#g" \
+ --expression "s#Cath├ędrale#Cathedrale#" \
+ --expression "s#_name#name#g" \
+ ${srcdir}/ubuntu-wallpapers-${pkgver}/bionic-wallpapers.xml.in
+
+ # move xml
+ property_dirs=(
+ "cinnamon-background-properties"
+ "gnome-background-properties"
+ "mate-background-properties"
+ )
+
+ for property_dir in ${property_dirs[@]}; do
+ install -D --mode 644 ${srcdir}/ubuntu-wallpapers-${pkgver}/bionic-wallpapers.xml.in ${pkgdir}/usr/share/${property_dir}/bionic-wallpapers.xml
+ done
+
+ # license
+ install -D --mode 644 ${srcdir}/ubuntu-wallpapers-${pkgver}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}