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 8819 - (hide annotations) (download)
Tue Aug 2 07:45:29 2011 UTC (12 years, 9 months ago) by niro
File size: 2435 byte(s)
auto added: ver bump to 0.8.4_20110801-r1
1 niro 7939 # $Id$
2    
3     PNAME="plymouth"
4     PVER="0.8.4_20110603"
5 niro 8819 PBUILD="r3"
6 niro 7939
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 niro 8819 --with-logo=/usr/share/plymouth/magellan-logo.png \
64 niro 7939 || die
65    
66     mmake || die
67     }
68    
69     src_install()
70     {
71     cd ${SRCDIR}
72     mmake DESTDIR=${BINDIR} install || die
73    
74     # install boot-duration for initrd
75     minstalldir /usr/share/plymouth || die
76     minstalldir /var/lib/plymouth || die
77 niro 7940 minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die
78     minstallfile -s boot-duration /var/lib/plymouth || die
79 niro 7939
80     # install charge plugin from fedora
81     minstalldir /usr/share/plymouth/themes/charge || die
82 niro 7940 minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die
83 niro 7939 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die
84     minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die
85     minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die
86     minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die
87    
88     minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die
89     }