# $Id$ PNAME="plymouth-theme-alx" PVER="1.1" PBUILD="r2" PCAT="x11-themes" DESCRIPTION="ALX plymouth theme." HOMEPAGE="http://www.freedesktop.org/wiki/Software/Plymouth" DEPEND=">= sys-apps/plymouth-0.8" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( mirror://${PNAME}/${SRCFILE} ) UP2DATE="echo ${PVER}" postinstall() { if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] then plymouth-set-default-theme alx /usr/$(mlibdir)/plymouth/plymouth/plymouth-update-initrd fi } postremove() { if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] then if [[ -z $(plymouth-set-default-theme --list | grep alx) ]] then plymouth-set-default-theme --reset /usr/$(mlibdir)/plymouth/plymouth/plymouth-update-initrd fi fi }