Contents of /smage/trunk/core/plymouth-theme-alx/plymouth-theme-alx-1.1-r1.smage2
Parent Directory | Revision Log
Revision 4663 -
(show annotations)
(download)
Thu Mar 21 12:37:54 2013 UTC (11 years, 6 months ago) by niro
File size: 775 byte(s)
Thu Mar 21 12:37:54 2013 UTC (11 years, 6 months ago) by niro
File size: 775 byte(s)
-call plymouth-update-initrd
1 | # $Id$ |
2 | |
3 | PNAME="plymouth-theme-alx" |
4 | PVER="1.1" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="x11-themes" |
8 | |
9 | DESCRIPTION="ALX plymouth theme." |
10 | HOMEPAGE="http://www.freedesktop.org/wiki/Software/Plymouth" |
11 | |
12 | DEPEND=">= sys-apps/plymouth-0.8" |
13 | |
14 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
16 | |
17 | sminclude mbuild |
18 | |
19 | SRC_URI=( mirror://${PNAME}/${SRCFILE} ) |
20 | |
21 | UP2DATE="echo ${PVER}" |
22 | |
23 | postinstall() |
24 | { |
25 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
26 | then |
27 | plymouth-set-default-theme alx |
28 | /usr/$(mlibdir)/plymouth/plymouth/plymouth-update-initrd |
29 | fi |
30 | } |
31 | |
32 | postremove() |
33 | { |
34 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
35 | then |
36 | if [[ -z $(plymouth-set-default-theme --list | grep alx) ]] |
37 | then |
38 | plymouth-set-default-theme --reset |
39 | /usr/$(mlibdir)/plymouth/plymouth/plymouth-update-initrd |
40 | fi |
41 | fi |
42 | } |