Magellan Linux

Annotation of /branches/magellan-next/core/plymouth/plymouth-0.8.4_20110603-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7940 - (hide annotations) (download)
Sat Jun 4 17:22:32 2011 UTC (12 years, 11 months ago) by niro
File size: 2381 byte(s)
-stablizing plymouth, added charge plugin from fedora, added boot-duration for initrd, fixed update-initrd to either use dracut or mkinitrd and use charge as default theme
1 niro 7939 # $Id$
2    
3     PNAME="plymouth"
4     PVER="0.8.4_20110603"
5     PBUILD="r2"
6    
7     PCATEGORIE="sys-apps"
8    
9     DESCRIPTION="Graphical Boot Animation and Logger."
10     HOMEPAGE="http://www.freedesktop.org/wiki/Software/Plymouth"
11    
12     DEPEND=">= media-libs/libpng-1.5
13     >= x11-libs/pango-1.28
14     >= x11-libs/cairo-1.20"
15    
16     SDEPEND=">= dev-util/pkgconfig-0.25
17     >= virtual/kernel-headers"
18    
19     SRCFILE="${PNAME}-${PVER}.tar.bz2"
20     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21    
22     sminclude mtools
23    
24     SRC_URI=(
25     http://www.freedesktop.org/software/${PNAME}/${SRCFILE}
26     mirror://${PNAME}/${SRCFILE}
27     mirror://${PNAME}/boot-duration
28     mirror://${PNAME}/charge.plymouth
29     )
30    
31     UP2DATE="updatecmd http://www.freedesktop.org/software/plymouth/releases/ | lasttarball"
32    
33     src_prepare()
34     {
35     munpack ${SRCFILE} || die
36     cd ${SRCDIR}
37    
38     # let new-kernel-pkg decide how to handle initramfs updates (dracut or mkinird)
39     cat > scripts/plymouth-update-initrd << EOF
40     #!/bin/bash
41     /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --install $(uname -r)
42     EOF
43    
44     # make charge to the default plugin
45     sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die
46    
47     # git - missing configure
48     mautoreconf || die
49     }
50    
51     src_compile()
52     {
53     cd ${SRCDIR}
54    
55     mconfigure \
56     --libexecdir=/usr/$(mlibdir)/${PNAME} \
57     --enable-tracing \
58     --disable-tests \
59     --disable-gdm-transition \
60     --enable-systemd-integration \
61     --with-system-root-install \
62     --without-log-viewer \
63     || die
64    
65     mmake || die
66     }
67    
68     src_install()
69     {
70     cd ${SRCDIR}
71     mmake DESTDIR=${BINDIR} install || die
72    
73     # install boot-duration for initrd
74     minstalldir /usr/share/plymouth || die
75     minstalldir /var/lib/plymouth || die
76 niro 7940 minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die
77     minstallfile -s boot-duration /var/lib/plymouth || die
78 niro 7939
79     # install charge plugin from fedora
80     minstalldir /usr/share/plymouth/themes/charge || die
81 niro 7940 minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die
82 niro 7939 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die
83     minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die
84     minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die
85     minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die
86    
87     minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die
88     }