From 0dfed93ff9118d9ab079541bcf02d5516cedd972 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 13 Oct 2018 18:06:59 +0100 Subject: x11-themes/redcore-artwork-core : don't trigger initramfs regen if running in chroot --- .../redcore-artwork-core-1337-r1.exheres-0 | 66 --------------------- .../redcore-artwork-core-1337-r2.exheres-0 | 68 ++++++++++++++++++++++ 2 files changed, 68 insertions(+), 66 deletions(-) delete mode 100644 packages/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r1.exheres-0 create mode 100644 packages/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r2.exheres-0 diff --git a/packages/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r1.exheres-0 b/packages/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r1.exheres-0 deleted file mode 100644 index 2e126d1..0000000 --- a/packages/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r1.exheres-0 +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 2018 Redcore Linux Project -# Distributed under the terms of the GNU General Public License v2 - -DOWNLOADS="http://mirrors.redcorelinux.org/redcorelinux/distfiles/${PN}.tar.xz" - -SUMMARY="Redcore Linux Project core artwork (plymouth, cursors, logos, wallpapers)" -DESCRIPTION="Redcore Linux Project core artwork" -HOMEPAGE="https://redcorelinux.org" - -LICENCES="CCPL-Attribution-ShareAlike-3.0" -SLOT="0" -PLATFORMS="~amd64" -MYOPTIONS="" - -DEPENDENCIES=" - run: - x11-themes/hicolor-icon-theme[>=0.10] -" - -WORK="${WORKBASE}"/"${PN}" - -src_prepare() { - : -} - -src_configure() { - : -} - -src_compile() { - : -} - -src_install() { - dodir /usr/share/cursors/xorg-x11/ - insinto /usr/share/cursors/xorg-x11/ - doins -r mouse/Hacked-Red - dosym ../../../../usr/share/cursors/xorg-x11/Hacked-Red usr/share/cursors/xorg-x11/default - - dodir /usr/share/backgrounds/ - insinto /usr/share/backgrounds/ - doins -r background/nature - - dodir /usr/share/pixmaps/ - insinto /usr/share/pixmaps/ - doins logo/*.png - - dodir /usr/share/plymouth/ - insinto /usr/share/plymouth/ - doins plymouth/bizcom.png - - dodir /usr/share/plymouth/themes/ - insinto /usr/share/plymouth/themes/ - doins -r plymouth/themes/redcore -} - -_dracut_initramfs_regen() { - if [[ -x $(which dracut) ]]; then - dracut -N -f --no-hostonly-cmdline - fi -} - -pkg_postinst() { - # regenerate dracut initramfs (reason : include updated plymouth theme) - _dracut_initramfs_regen -} diff --git a/packages/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r2.exheres-0 b/packages/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r2.exheres-0 new file mode 100644 index 0000000..d0eed0c --- /dev/null +++ b/packages/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r2.exheres-0 @@ -0,0 +1,68 @@ +# Copyright 2018 Redcore Linux Project +# Distributed under the terms of the GNU General Public License v2 + +DOWNLOADS="http://mirrors.redcorelinux.org/redcorelinux/distfiles/${PN}.tar.xz" + +SUMMARY="Redcore Linux Project core artwork (plymouth, cursors, logos, wallpapers)" +DESCRIPTION="Redcore Linux Project core artwork" +HOMEPAGE="https://redcorelinux.org" + +LICENCES="CCPL-Attribution-ShareAlike-3.0" +SLOT="0" +PLATFORMS="~amd64" +MYOPTIONS="" + +DEPENDENCIES=" + run: + x11-themes/hicolor-icon-theme[>=0.10] +" + +WORK="${WORKBASE}"/"${PN}" + +src_prepare() { + : +} + +src_configure() { + : +} + +src_compile() { + : +} + +src_install() { + dodir /usr/share/cursors/xorg-x11/ + insinto /usr/share/cursors/xorg-x11/ + doins -r mouse/Hacked-Red + dosym ../../../../usr/share/cursors/xorg-x11/Hacked-Red usr/share/cursors/xorg-x11/default + + dodir /usr/share/backgrounds/ + insinto /usr/share/backgrounds/ + doins -r background/nature + + dodir /usr/share/pixmaps/ + insinto /usr/share/pixmaps/ + doins logo/*.png + + dodir /usr/share/plymouth/ + insinto /usr/share/plymouth/ + doins plymouth/bizcom.png + + dodir /usr/share/plymouth/themes/ + insinto /usr/share/plymouth/themes/ + doins -r plymouth/themes/redcore +} + +_dracut_initramfs_regen() { + if [ -x $(which dracut) ]; then + dracut -N -f --no-hostonly-cmdline + fi +} + +pkg_postinst() { + # regenerate dracut initramfs (reason : include updated plymouth theme) + if [ $(stat -c %d:%i /) == $(stat -c %d:%i /proc/1/root/.) ]; then + _dracut_initramfs_regen + fi +} -- cgit v1.2.3