Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12687 - (show annotations) (download)
Thu Jun 28 08:47:01 2012 UTC (12 years, 2 months ago) by niro
File size: 3480 byte(s)
auto added: ver bump to 0.8.5.1-r1
1 # $Id$
2
3 PNAME="plymouth"
4 PVER="0.8.5.1"
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 # fix systemdunitdir location
59 sed -i \
60 's:SYSTEMD_UNIT_DIR=/lib/systemd/system:SYSTEMD_UNIT_DIR=/usr/lib/systemd/system:g' \
61 configure.ac || die
62
63 # let new-kernel-pkg decide how to handle initramfs updates (dracut or mkinird)
64 cat > scripts/plymouth-update-initrd << EOF
65 #!/bin/bash
66 /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --install $(uname -r)
67 EOF
68
69 # make charge to the default plugin
70 sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die
71
72 # git - missing configure
73 mautoreconf || die
74 }
75
76 src_compile()
77 {
78 cd ${SRCDIR}
79
80 mconfigure \
81 --localstatedir=/var \
82 --libexecdir=/usr/$(mlibdir)/${PNAME} \
83 --enable-tracing \
84 --disable-tests \
85 --disable-gdm-transition \
86 --enable-systemd-integration \
87 --without-system-root-install \
88 --without-log-viewer \
89 --with-logo=/usr/share/plymouth/magellan-logo.png \
90 --disable-static \
91 --disable-libdrm_nouveau \
92 || die
93
94 mmake || die
95 }
96
97 src_install_plymouth()
98 {
99 cd ${SRCDIR}
100 mmake DESTDIR=${BINDIR} install || die
101
102 # install magellan-logo
103 minstalldir /usr/share/plymouth || die
104 minstallfile -s magellan-sign.png /usr/share/plymouth/magellan-logo.png || die
105
106 # install boot-duration for initrd
107 minstalldir /usr/share/plymouth || die
108 minstalldir /var/lib/plymouth || die
109 minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die
110 minstallfile -s boot-duration /var/lib/plymouth || die
111
112 # install charge plugin from fedora
113 minstalldir /usr/share/plymouth/themes/charge || die
114 minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die
115 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die
116 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die
117 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die
118 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die
119
120 # remove x11-renderer
121 rm ${BINDIR}/usr/$(mlibdir)/plymouth/renderers/x11.* || die
122
123 minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die
124 }
125
126 src_install_plymouth-x11()
127 {
128 cd ${SRCDIR}
129 mmake DESTDIR=${BINDIR} install || die
130 zapmost ${BINDIR} usr/$(mlibdir)/plymouth/renderers/x11.* || die
131 }