From a2ad4d5b600449a953ae2dc5cb042aa2942115c5 Mon Sep 17 00:00:00 2001 From: Matthias Hentges Date: Thu, 9 Feb 2006 21:45:24 +0000 Subject: gpe-bootsplash: Use update-alternatives to install pictures Added: gpe-bootsplash-theme-e --- .../gpe-bootsplash/files/splash-e-landscape.svg | 536 ++++++++++++++++++++ .../gpe-bootsplash/files/splash-e-portrait.svg | 556 +++++++++++++++++++++ packages/gpe-bootsplash/gpe-bootsplash-theme-e.bb | 32 ++ packages/gpe-bootsplash/gpe-bootsplash_1.15.bb | 16 +- 4 files changed, 1137 insertions(+), 3 deletions(-) create mode 100644 packages/gpe-bootsplash/files/splash-e-landscape.svg create mode 100644 packages/gpe-bootsplash/files/splash-e-portrait.svg create mode 100644 packages/gpe-bootsplash/gpe-bootsplash-theme-e.bb (limited to 'packages') diff --git a/packages/gpe-bootsplash/files/splash-e-landscape.svg b/packages/gpe-bootsplash/files/splash-e-landscape.svg new file mode 100644 index 0000000000..0685d475e0 --- /dev/null +++ b/packages/gpe-bootsplash/files/splash-e-landscape.svg @@ -0,0 +1,536 @@ + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/gpe-bootsplash/files/splash-e-portrait.svg b/packages/gpe-bootsplash/files/splash-e-portrait.svg new file mode 100644 index 0000000000..ca0ad0893a --- /dev/null +++ b/packages/gpe-bootsplash/files/splash-e-portrait.svg @@ -0,0 +1,556 @@ + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/gpe-bootsplash/gpe-bootsplash-theme-e.bb b/packages/gpe-bootsplash/gpe-bootsplash-theme-e.bb new file mode 100644 index 0000000000..e95c09b3e8 --- /dev/null +++ b/packages/gpe-bootsplash/gpe-bootsplash-theme-e.bb @@ -0,0 +1,32 @@ +DESCRIPTION = "An Enlightenment theme for gpe-bootsplash" +SECTION = "base" +PRIORITY = "optional" +MAINTAINER = "Matthias 'CoreDump' Hentges " +LICENSE = "GPL" + +DEPENDS = "gpe-bootsplash" +RDEPENDS = "gpe-bootsplash" + +PR = "r0" + +export THEME = "e" + +SRC_URI = "file://*.svg" + +FILES_${PN} = "/usr/share/gpe/splash-${THEME}-*" + + +do_install(){ + install -d "${D}/usr/share/gpe" + install -m 0644 ${WORKDIR}/splash-${THEME}* ${D}/usr/share/gpe +} + +pkg_postinst() { + update-alternatives --install /usr/share/gpe/splash-l.svg bootsplash-l /usr/share/gpe/splash-${THEME}-landscape.svg 20 + update-alternatives --install /usr/share/gpe/splash-p.svg bootsplash-p /usr/share/gpe/splash-${THEME}-portrait.svg 20 +} + +pkg_postrm() { + update-alternatives --remove bootsplash-l /usr/share/gpe/splash-${THEME}-landscape.svg + update-alternatives --remove bootsplash-p /usr/share/gpe/splash-${THEME}-portrait.svg +} diff --git a/packages/gpe-bootsplash/gpe-bootsplash_1.15.bb b/packages/gpe-bootsplash/gpe-bootsplash_1.15.bb index 2e5f18b11f..1e25bfd1ab 100644 --- a/packages/gpe-bootsplash/gpe-bootsplash_1.15.bb +++ b/packages/gpe-bootsplash/gpe-bootsplash_1.15.bb @@ -5,15 +5,25 @@ MAINTAINER = "Phil Blundell " SECTION = "gpe" PRIORITY = "optional" LICENSE = "GPL" -PR = "r0" +PR = "r1" SRC_URI += "file://splash-p.svg file://splash-l.svg" FILES_${PN} += "${datadir}/gpe" do_install_append() { - install -m 0644 ${WORKDIR}/splash-p.svg ${D}${datadir}/gpe/splash-p.svg - install -m 0644 ${WORKDIR}/splash-l.svg ${D}${datadir}/gpe/splash-l.svg + install -m 0644 ${WORKDIR}/splash-p.svg ${D}${datadir}/gpe/splash-gpe-portrait.svg + install -m 0644 ${WORKDIR}/splash-l.svg ${D}${datadir}/gpe/splash-gpe-landscape.svg mv ${D}${sysconfdir}/rcS.d/S00bootsplash ${D}${sysconfdir}/rcS.d/S07bootsplash } +pkg_postinst() { + + update-alternatives --install /usr/share/gpe/splash-l.svg bootsplash-l /usr/share/gpe/splash-gpe-landscape.svg 10 + update-alternatives --install /usr/share/gpe/splash-p.svg bootsplash-p /usr/share/gpe/splash-gpe-portrait.svg 10 +} + +pkg_postrm() { + update-alternatives --remove bootsplash-l /usr/share/gpe/splash-gpe-landscape.svg + update-alternatives --remove bootsplash-p /usr/share/gpe/splash-gpe-portrait.svg +} -- cgit v1.2.3