Magellan Linux

Contents of /trunk/core/plymouth/plymouth-0.8.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12469 - (show annotations) (download)
Tue May 29 12:56:46 2012 UTC (12 years ago) by niro
File size: 3294 byte(s)
-fixed SRC_URI
1 # $Id$
2
3 PNAME="plymouth"
4 PVER="0.8.4"
5 PBUILD="r1"
6
7 SPLIT_PACKAGES="plymouth plymouth-x11"
8
9 PCAT="sys-apps"
10 HOMEPAGE="http://www.freedesktop.org/wiki/Software/Plymouth"
11
12 COMMON_DEPEND=">= dev-libs/glib2-2.32
13 >= media-libs/libpng-1.5
14 >= x11-libs/pango-1.30
15 >= x11-libs/cairo-1.20
16 >= x11-libs/libdrm-2.4.34"
17
18 X11_DEPEND=">= x11-libs/gtk2+-2.24"
19
20 SDEPEND="${COMMON_DEPEND}
21 ${X11_DEPEND}
22 >= dev-util/pkgconfig-0.25
23 >= virtual/kernel-headers"
24
25 SRCFILE="${PNAME}-${PVER}.tar.bz2"
26 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
27
28 sminclude mtools cleanutils
29
30 SRC_URI=(
31 http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE}
32 mirror://${PNAME}/${SRCFILE}
33 mirror://${PNAME}/boot-duration
34 mirror://${PNAME}/charge.plymouth
35 mirror://${PNAME}/magellan-sign.png
36 )
37
38 UP2DATE="updatecmd http://www.freedesktop.org/software/plymouth/releases/ | lasttarball"
39
40 split_info_plymouth()
41 {
42 DESCRIPTION="Graphical Boot Animation and Logger."
43 DEPEND="${COMMON_DEPEND}"
44 }
45
46 split_info_plymouth-x11()
47 {
48 DESCRIPTION="X11 renderer of plymouth, for development purposes only."
49 DEPEND="== sys-apps/plymouth-${PVER}
50 ${X11_DEPEND}"
51 }
52
53 src_prepare()
54 {
55 munpack ${SRCFILE} || die
56 cd ${SRCDIR}
57
58 # let new-kernel-pkg decide how to handle initramfs updates (dracut or mkinird)
59 cat > scripts/plymouth-update-initrd << EOF
60 #!/bin/bash
61 /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --install $(uname -r)
62 EOF
63
64 # make charge to the default plugin
65 sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die
66
67 # git - missing configure
68 mautoreconf || die
69 }
70
71 src_compile()
72 {
73 cd ${SRCDIR}
74
75 mconfigure \
76 --localstatedir=/var \
77 --libexecdir=/usr/$(mlibdir)/${PNAME} \
78 --enable-tracing \
79 --disable-tests \
80 --disable-gdm-transition \
81 --enable-systemd-integration \
82 --with-system-root-install \
83 --without-log-viewer \
84 --with-logo=/usr/share/plymouth/magellan-logo.png \
85 --disable-static \
86 || die
87
88 mmake || die
89 }
90
91 src_install_plymouth()
92 {
93 cd ${SRCDIR}
94 mmake DESTDIR=${BINDIR} install || die
95
96 # install magellan-logo
97 minstalldir /usr/share/plymouth || die
98 minstallfile -s magellan-sign.png /usr/share/plymouth/magellan-logo.png || die
99
100 # install boot-duration for initrd
101 minstalldir /usr/share/plymouth || die
102 minstalldir /var/lib/plymouth || die
103 minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die
104 minstallfile -s boot-duration /var/lib/plymouth || die
105
106 # install charge plugin from fedora
107 minstalldir /usr/share/plymouth/themes/charge || die
108 minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die
109 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die
110 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die
111 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die
112 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die
113
114 # remove x11-renderer
115 rm ${BINDIR}/usr/$(mlibdir)/plymouth/renderers/x11.* || die
116
117 minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die
118 }
119
120 src_install_plymouth-x11()
121 {
122 cd ${SRCDIR}
123 mmake DESTDIR=${BINDIR} install || die
124 zapmost ${BINDIR} usr/$(mlibdir)/plymouth/renderers/x11.* || die
125 }