23-fake-gnome-backgrounds 807 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/sh
  2. set -e
  3. set -u
  4. echo "Install a fake gnome-backgrounds package"
  5. tmp="$(mktemp -d)"
  6. apt-get install --yes equivs
  7. REAL_PKG_VERSION=$(dpkg-query -W -f='${Version}\n' gnome-backgrounds)
  8. FAKE_PKG_VERSION=${REAL_PKG_VERSION}+tails.fake1
  9. cat > "${tmp}"/gnome-backgrounds.control << EOF
  10. Section: gnome
  11. Priority: optional
  12. Homepage: https://tails.boum.org/
  13. Standards-Version: 3.9.6
  14. Package: gnome-backgrounds
  15. Version: ${FAKE_PKG_VERSION}
  16. Maintainer: Tails developers <amnesia@boum.org>
  17. Architecture: all
  18. Description: (Fake) gnome-backgrounds
  19. Make it possible to install gnome-shell without having to
  20. install a real gnome-backgrounds package.
  21. EOF
  22. (
  23. cd "${tmp}"
  24. equivs-build "${tmp}"/gnome-backgrounds.control
  25. dpkg -i "${tmp}"/gnome-backgrounds_"${FAKE_PKG_VERSION}"_all.deb
  26. )
  27. rm -R "${tmp}"