From c6ffc00d10c23153d611893bf295b86a91046a95 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 24 Dec 2018 13:51:01 +0000 Subject: x11-themes/redcore-artwork-core : only regenerate initramfs when NOT in chroot --- .../redcore-artwork-core-1337-r1.ebuild | 52 ++++++++++++++++++++++ .../redcore-artwork-core-1337.ebuild | 43 ------------------ 2 files changed, 52 insertions(+), 43 deletions(-) create mode 100644 x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r1.ebuild delete mode 100644 x11-themes/redcore-artwork-core/redcore-artwork-core-1337.ebuild (limited to 'x11-themes') diff --git a/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r1.ebuild b/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r1.ebuild new file mode 100644 index 00000000..28efde7a --- /dev/null +++ b/x11-themes/redcore-artwork-core/redcore-artwork-core-1337-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 2016 Redcore Linux +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 +inherit eutils + +DESCRIPTION="Offical Redcore Linux Core Artwork" +HOMEPAGE="https://redcorelinux.org" +SRC_URI="http://mirror.math.princeton.edu/pub/redcorelinux/distfiles/${PN}.tar.xz" + +LICENSE="CCPL-Attribution-ShareAlike-3.0" +SLOT="0" +KEYWORDS="x86 amd64" +IUSE="" +RDEPEND="sys-apps/findutils + >=x11-themes/hicolor-icon-theme-0.10" + +S="${WORKDIR}"/"${PN}" + +src_install() { + # Cursors + 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 + + # Wallpapers + insinto usr/share/backgrounds/ + doins -r background/nature + + # Logos + insinto usr/share/pixmaps/ + doins logo/*.png + + # Plymouth theme + insinto usr/share/plymouth + doins plymouth/bizcom.png + 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 initramfs to include plymouth theme changes + if [ $(stat -c %d:%i /) == $(stat -c %d:%i /proc/1/root/.) ]; then + _dracut_initramfs_regen + fi +} diff --git a/x11-themes/redcore-artwork-core/redcore-artwork-core-1337.ebuild b/x11-themes/redcore-artwork-core/redcore-artwork-core-1337.ebuild deleted file mode 100644 index 8dc99bc9..00000000 --- a/x11-themes/redcore-artwork-core/redcore-artwork-core-1337.ebuild +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 2016 Redcore Linux -# Distributed under the terms of the GNU General Public License v2 - -EAPI=4 -inherit eutils - -DESCRIPTION="Offical Redcore Linux Core Artwork" -HOMEPAGE="https://redcorelinux.org" -SRC_URI="http://mirror.math.princeton.edu/pub/redcorelinux/distfiles/${PN}.tar.xz" - -LICENSE="CCPL-Attribution-ShareAlike-3.0" -SLOT="0" -KEYWORDS="x86 amd64" -IUSE="" -RDEPEND="sys-apps/findutils" - -S="${WORKDIR}"/"${PN}" - -src_install() { - # Cursors - 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 - - # Wallpapers - insinto usr/share/backgrounds/ - doins -r background/nature - - # Logos - insinto usr/share/pixmaps/ - doins logo/*.png - - # Plymouth theme - insinto usr/share/plymouth - doins plymouth/bizcom.png - insinto usr/share/plymouth/themes - doins -r plymouth/themes/redcore -} - -pkg_postinst() { - # regenerate initramfs to include plymouth theme changes - dracut -N -f --no-hostonly-cmdline -} -- cgit v1.2.3