From 0da7d08382d98f139aa1baa6ad4284ffa3089c17 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Thu, 23 Apr 2020 17:34:12 +0200 Subject: [PATCH] Initial Commit --- .SRCINFO | 12 ++++++++++++ .gitignore | 5 +++++ PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..d3c1429 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = ubuntu-backgrounds-focal + pkgdesc = The backgrounds included in Ubuntu 20.04 focal + pkgver = 20.04.2 + pkgrel = 1 + url = https://launchpad.net/ubuntu/+source/ubuntu-wallpapers/20.04.2-0ubuntu1 + arch = any + license = Commons Attribution-ShareAlike 3.0 Unported + source = https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/ubuntu-wallpapers/20.04.2-0ubuntu1/ubuntu-wallpapers_20.04.2.orig.tar.gz + sha256sums = c89d53a769967edce106fb6b431e35ee1e3a14a91aa50545ff72b5c8159737ee + +pkgname = ubuntu-backgrounds-focal + 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..235feb4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Markus Pesch + +pkgname=ubuntu-backgrounds-focal +pkgver=20.04.2 +pkgrel=1 +pkgdesc="The backgrounds included in Ubuntu 20.04 focal" +license=('Commons Attribution-ShareAlike 3.0 Unported') +arch=('any') +url="https://launchpad.net/ubuntu/+source/ubuntu-wallpapers/${pkgver}-0ubuntu1" +source=("https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/ubuntu-wallpapers/${pkgver}-0ubuntu1/ubuntu-wallpapers_${pkgver}.orig.tar.gz") +sha256sums=('c89d53a769967edce106fb6b431e35ee1e3a14a91aa50545ff72b5c8159737ee') + +package() { + + # move only wallpapers which are new in focal + wallpapers=( + "brad-huchteman-stone-mountain.jpg" + "joshua-coleman-something-yellow.jpg" + "matt-mcnulty-nyc-2nd-ave.jpg" + "ryan-stone-skykomish-river.jpg" + "hardy_wallpaper_uhd.png" + ) + + 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/focal.xml#/usr/share/gnome-background-properties/focal-wallpapers.xml#" \ + --expression "s#/usr/share/backgrounds#/usr/share/backgrounds/${pkgname}#g" \ + --expression "s#_name#name#g" \ + ${srcdir}/ubuntu-wallpapers-${pkgver}/focal-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}/focal-wallpapers.xml.in ${pkgdir}/usr/share/${property_dir}/focal-wallpapers.xml + done + + # license + install -D --mode 644 ${srcdir}/ubuntu-wallpapers-${pkgver}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +}