Magellan Linux

Annotation of /smage/trunk/core/plymouth-theme-alx/plymouth-theme-alx-1.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4662 - (hide annotations) (download)
Thu Mar 21 12:36:57 2013 UTC (11 years, 3 months ago) by niro
File size: 779 byte(s)
auto added: ver bump to 1.1-r1
1 niro 4662 # $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-generate-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-generate-initrd
40     fi
41     fi
42     }