From a99a5b4a6b8dff54faa4f415a34264f8eb059d98 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Thu, 23 Apr 2020 16:23:20 +0200 Subject: [PATCH] Initial Commit --- .SRCINFO | 12 +++++++++++ .gitignore | 5 +++++ PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 77 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..ae07563 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = ubuntu-backgrounds-trusty + pkgdesc = The backgrounds included in Ubuntu 14.04 trusty + pkgver = 14.04.0.1 + pkgrel = 1 + url = https://launchpad.net/ubuntu/+source/ubuntu-wallpapers/14.04.0.1-0ubuntu1 + arch = any + license = Commons Attribution-ShareAlike 3.0 Unported + source = https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/ubuntu-wallpapers/14.04.0.1-0ubuntu1/ubuntu-wallpapers_14.04.0.1.orig.tar.gz + sha256sums = a66e322b5d081484cbade3e43103a1f05044dd418631dc68c33d81b6303a3990 + +pkgname = ubuntu-backgrounds-trusty + 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..5345080 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,60 @@ +# Maintainer: Markus Pesch + +pkgname=ubuntu-backgrounds-trusty +pkgver=14.04.0.1 +pkgrel=1 +pkgdesc="The backgrounds included in Ubuntu 14.04 trusty" +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=('a66e322b5d081484cbade3e43103a1f05044dd418631dc68c33d81b6303a3990') + +package() { + + # move only wallpapers which are new in trusty + wallpapers=( + "Backyard_Mushrooms_by_Kurt_Zitzelman.jpg" + "Beach_by_Renato_Giordanelli.jpg" + "Berries_by_Tom_Kijas.jpg" + "Foggy_Forest_by_Jake_Stewart.jpg" + "Forever_by_Shady_S.jpg" + "Ibanez_Infinity_by_Jaco_Kok.jpg" + "Jelly_Fish_by_RaDu_GaLaN.jpg" + "Mono_Lake_by_Angela_Henderson.jpg" + "Partitura_by_Vincijun.jpg" + "Reflections_by_Trenton_Fox.jpg" + "Sea_Fury_by_Ian_Worrall.jpg" + "Water_web_by_Tom_Kijas.jpg" + ) + + mkdir --parents ${pkgdir}/usr/share/backgrounds/${pkgname} + for wallaper in ${wallpapers[@]}; do + cp --archive ${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/trusty.xml#/usr/share/gnome-background-properties/trusty-wallpapers.xml#" \ + --expression "s#/usr/share/backgrounds#/usr/share/backgrounds/${pkgname}#g" \ + --expression "s#_name#name#g" \ + ${srcdir}/ubuntu-wallpapers-${pkgver}/trusty-wallpapers.xml.in + + # move xml + property_dirs=( + "cinnamon-background-properties" + "gnome-background-properties" + "mate-background-properties" + ) + + for property_dir in ${property_dirs[@]}; do + mkdir --parents ${pkgdir}/usr/share/${property_dir} + cp --archive ${srcdir}/ubuntu-wallpapers-${pkgver}/trusty-wallpapers.xml.in ${pkgdir}/usr/share/${property_dir}/trusty-wallpapers.xml + done + + # license + install -D --mode 644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +}