Magellan Linux

Contents of /smage/trunk/core/plymouth/plymouth-0.8.8-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4660 - (show annotations) (download)
Thu Mar 21 11:59:27 2013 UTC (11 years, 2 months ago) by niro
File size: 3799 byte(s)
-fixed plymouth-update-initrd script
1 # $Id$
2
3 PNAME="plymouth"
4 PVER="0.8.8"
5 PBUILD="r2"
6
7 PCAT="sys-apps"
8
9 DESCRIPTION="Graphical Boot Animation and Logger."
10 HOMEPAGE="http://www.freedesktop.org/wiki/Software/Plymouth"
11
12 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 SDEPEND=">= dev-util/pkgconfig-0.25
19 >= virtual/kernel-headers
20 >= x11-libs/gtk2+-2.24"
21
22 SRCFILE="${PNAME}-${PVER}.tar.bz2"
23 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24
25 ALX_PKG_KEEP="etc/plymouth
26 usr/bin/plymouth
27 usr/sbin/plymouthd
28 usr/sbin/plymouth-set-default-theme
29 usr/share/plymouth/default-boot-duration
30 usr/share/plymouth/magellan-logo.png
31 usr/share/plymouth/plymouthd.defaults
32 usr/$(mlibdir)/*.so.*
33 usr/$(mlibdir)/plymouth/script.so
34 usr/$(mlibdir)/plymouth/plymouth/plymouth-generate-initrd
35 usr/$(mlibdir)/plymouth/plymouth/plymouth-populate-initrd
36 usr/$(mlibdir)/plymouth/plymouth/plymouth-update-initrd
37 usr/$(mlibdir)/plymouth/renderers/drm.so
38 usr/$(mlibdir)/plymouth/renderers/frame-buffer.so
39 usr/lib/systemd"
40 sminclude mtools cleanutils alx-split
41
42 SRC_URI=(
43 http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE}
44 mirror://${PNAME}/${SRCFILE}
45 mirror://${PNAME}/boot-duration
46 mirror://${PNAME}/charge.plymouth
47 mirror://${PNAME}/magellan-sign.png
48 mirror://${PNAME}/${PNAME}-${PVER}-busybox-compat.patch
49 )
50
51 UP2DATE="updatecmd http://www.freedesktop.org/software/plymouth/releases/ | lasttarball"
52
53 src_prepare()
54 {
55 munpack ${SRCFILE} || die
56 cd ${SRCDIR}
57
58 # be busybox compat
59 mpatch ${PNAME}-${PVER}-busybox-compat.patch || die
60
61 # fix systemdunitdir location
62 sed -i \
63 's:SYSTEMD_UNIT_DIR=/lib/systemd/system:SYSTEMD_UNIT_DIR=/usr/lib/systemd/system:g' \
64 configure.ac || die
65
66 # let new-kernel-pkg decide how to handle initramfs updates (dracut or mkinird)
67 cat > scripts/plymouth-update-initrd << EOF
68 #!/bin/bash
69 /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --install \$(uname -r)
70 EOF
71
72 # make charge to the default plugin
73 sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die
74
75 # git - missing configure
76 mautoreconf || die
77 }
78
79 src_compile()
80 {
81 cd ${SRCDIR}
82
83 mconfigure \
84 --localstatedir=/var \
85 --libexecdir=/usr/$(mlibdir)/${PNAME} \
86 --enable-tracing \
87 --disable-tests \
88 --disable-gdm-transition \
89 --enable-systemd-integration \
90 --without-system-root-install \
91 --without-log-viewer \
92 --with-logo=/usr/share/plymouth/magellan-logo.png \
93 --disable-static \
94 --disable-libdrm_nouveau \
95 --disable-libkms \
96 --with-background-start-color-stop=0xff0000 \
97 --with-background-end-color-stop=0x00ff00 \
98 --with-background-color=0x0000ff \
99 || die
100
101 mmake || die
102 }
103
104 alx_generic_src_install()
105 {
106 cd ${SRCDIR}
107 mmake DESTDIR=${BINDIR} install || die
108
109 # install magellan-logo
110 minstalldir /usr/share/plymouth || die
111 minstallfile -s magellan-sign.png /usr/share/plymouth/magellan-logo.png || die
112
113 # install boot-duration for initrd
114 minstalldir /usr/share/plymouth || die
115 minstalldir /var/lib/plymouth || die
116 minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die
117 minstallfile -s boot-duration /var/lib/plymouth || die
118
119 # install charge plugin from fedora
120 minstalldir /usr/share/plymouth/themes/charge || die
121 minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die
122 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die
123 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die
124 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die
125 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die
126
127 minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die
128 }