diff options
author | Markus Pesch | 2020-04-23 21:37:57 +0200 |
---|---|---|
committer | Markus Pesch | 2020-04-23 21:37:57 +0200 |
commit | 5df1085a939e65398c008947a1e6e65e6497e0d4 (patch) | |
tree | cf77f479983aa9c1ff8bbfa968ac9aab7f8b05e4 | |
download | aur-5df1085a939e65398c008947a1e6e65e6497e0d4.tar.gz |
Intial Commit
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 63 |
3 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9b48ceb0bd81 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = ubuntu-backgrounds-xenial + pkgdesc = The backgrounds included in Ubuntu 16.04 xenial + pkgver = 16.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_16.04.1.orig.tar.gz + sha256sums = a8223eeb95f851bed5b51b40469179c54fb3c468ed5ab48079bb25172c72c423 + +pkgname = ubuntu-backgrounds-xenial + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..3814e4105a02 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!PKGBUILD +!.gitignore +!.editorconfig +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5e0675bf9d5b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: Markus Pesch <markus.pesch@cryptic.systems> + +pkgname=ubuntu-backgrounds-xenial +pkgver=16.04.1 +pkgrel=1 +pkgdesc="The backgrounds included in Ubuntu 16.04 xenial" +license=('Commons Attribution-ShareAlike 3.0 Unported') +arch=('any') +url="http://archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-wallpapers" +source=("${url}/ubuntu-wallpapers_${pkgver}.orig.tar.gz") +sha256sums=('a8223eeb95f851bed5b51b40469179c54fb3c468ed5ab48079bb25172c72c423') + +package() { + + mv ${srcdir}/ubuntu-wallpapers-${pkgver}/Cielo_estrellado_by_Eduardo_Diez_Viñuela.jpg ${srcdir}/ubuntu-wallpapers-${pkgver}/Cielo_estrellado_by_Eduardo_Diez_Vinuela.jpg + mv ${srcdir}/ubuntu-wallpapers-${pkgver}/The_Land_of_Edonias_by_Γιωργος_Αργυροπουλος.jpg ${srcdir}/ubuntu-wallpapers-${pkgver}/The_Land_of_Edonias.jpg + + # move only wallpapers which are new in xenial + wallpapers=( + "160218-deux-two_by_Pierre_Cante.jpg" + "Black_hole_by_Marek_Koteluk.jpg" + "Cielo_estrellado_by_Eduardo_Diez_Vinuela.jpg" + "clock_by_Bernhard_Hanakam.jpg" + "Dans_ma_bulle_by_Christophe_Weibel.jpg" + "Flora_by_Marek_Koteluk.jpg" + "Icy_Grass_by_Raymond_Lavoie.jpg" + "Night_lights_by_Alberto_Salvia_Novella.jpg" + "passion_flower_by_Irene_Gr.jpg" + "Spring_by_Peter_Apas.jpg" + "TCP118v1_by_Tiziano_Consonni.jpg" + "The_Land_of_Edonias.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/xenial.xml#/usr/share/gnome-background-properties/xenial-wallpapers.xml#" \ + --expression "s#/usr/share/backgrounds#/usr/share/backgrounds/${pkgname}#g" \ + --expression "s#Viñuela#Vinuela#" \ + --expression "s#_by_Γιωργος_Αργυροπουλος##" \ + --expression "s#_name#name#g" \ + ${srcdir}/ubuntu-wallpapers-${pkgver}/xenial-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}/xenial-wallpapers.xml.in ${pkgdir}/usr/share/${property_dir}/xenial-wallpapers.xml + done + + # license + install -D --mode 644 ${srcdir}/ubuntu-wallpapers-${pkgver}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} |