commit 743ffb89ae0797c00e1460975026ddbbc2578573 Author: Markus Pesch Date: Wed Oct 7 21:58:24 2020 +0200 Initial Commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..25f0ac7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = ubuntu-backgrounds-groovy + pkgdesc = The backgrounds included in Ubuntu 20.10 groovy + pkgver = 20.10.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_20.10.1.orig.tar.gz + sha256sums = 3db2a2612239cdc06e58035cd8910005f7e75969fcb5aa149712261c8c6f3bac + +pkgname = ubuntu-backgrounds-groovy + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3814e41 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!PKGBUILD +!.gitignore +!.editorconfig +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..4b360f5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: Markus Pesch + +pkgname=ubuntu-backgrounds-groovy +pkgver=20.10.1 +pkgrel=1 +pkgdesc="The backgrounds included in Ubuntu 20.10 groovy" +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=('3db2a2612239cdc06e58035cd8910005f7e75969fcb5aa149712261c8c6f3bac') + +_ubunturelver=20.10 +_ubunturelname=groovy + +package() { + + mv "${srcdir}/ubuntu-wallpapers-${pkgver}/Abstract_Painting_Photo_by_Pierre_Châtel-Innocenti.jpg" "${srcdir}/ubuntu-wallpapers-${pkgver}/Abstract_Painting_Photo_by_Pierre_Chatel-Innocenti.jpg" + + # move only wallpapers which are new + wallpapers=( + "Abstract_Painting_Photo_by_Pierre_Chatel-Innocenti.jpg" + "Camera_Film_by_Markus_Spiske.jpg" + "Colored_Pencils_by_Jess_Bailey.jpg" + "Landscape_Photography_Of_Mountains_by_Simon_Berger.jpg" + "Silver_Back_Gorilla_by_Mike_Arney.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/${_ubunturelname}.xml#/usr/share/gnome-background-properties/${_ubunturelname}-wallpapers.xml#" \ + --expression "s#/usr/share/backgrounds#/usr/share/backgrounds/${pkgname}#g" \ + --expression "s#_name#name#g" \ + --expression "s# Châtel#_Chatel#g" \ + ${srcdir}/ubuntu-wallpapers-${pkgver}/${_ubunturelname}-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}/${_ubunturelname}-wallpapers.xml.in ${pkgdir}/usr/share/${property_dir}/${_ubunturelname}-wallpapers.xml + done + + # license + install -D --mode 644 ${srcdir}/ubuntu-wallpapers-${pkgver}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +}