ubuntu-backgrounds-trusty-pkg/PKGBUILD

59 lines
2.0 KiB
Bash
Raw Normal View History

2020-04-23 14:23:20 +00:00
# Maintainer: Markus Pesch <markus.pesch@cryptic.systems>
pkgname=ubuntu-backgrounds-trusty
pkgver=14.04.0.1
2020-04-23 14:34:32 +00:00
pkgrel=2
2020-04-23 14:23:20 +00:00
pkgdesc="The backgrounds included in Ubuntu 14.04 trusty"
license=('Commons Attribution-ShareAlike 3.0 Unported')
arch=('any')
2020-04-23 19:11:02 +00:00
url="http://archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-wallpapers"
source=("${url}/ubuntu-wallpapers_${pkgver}.orig.tar.gz")
2020-04-23 14:23:20 +00:00
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"
)
for wallaper in ${wallpapers[@]}; do
2020-04-23 14:34:32 +00:00
install -D --mode 644 ${srcdir}/ubuntu-wallpapers-${pkgver}/${wallaper} ${pkgdir}/usr/share/backgrounds/${pkgname}/${wallaper}
2020-04-23 14:23:20 +00:00
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
2020-04-23 14:34:32 +00:00
install -D --mode 644 ${srcdir}/ubuntu-wallpapers-${pkgver}/trusty-wallpapers.xml.in ${pkgdir}/usr/share/${property_dir}/trusty-wallpapers.xml
2020-04-23 14:23:20 +00:00
done
# license
2020-04-23 14:34:32 +00:00
install -D --mode 644 ${srcdir}/ubuntu-wallpapers-${pkgver}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
2020-04-23 14:23:20 +00:00
}