Magellan Linux

Contents of /trunk/extras/plymouth/plymouth-0.9.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31728 - (show annotations) (download)
Thu Dec 6 12:02:16 2018 UTC (5 years, 4 months ago) by niro
File size: 3518 byte(s)
auto added: ver bump to 0.9.4-r1
1 # $Id$
2
3 PNAME="plymouth"
4 PVER="0.9.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.58
13 >= media-libs/libpng-1.5
14 >= x11-libs/pango-1.42
15 >= x11-libs/cairo-1.16
16 >= x11-libs/libdrm-2.4.83"
17
18 X11_DEPEND=">= x11-libs/gtk2+-2.24
19 >= x11-libs/gtk3+-3.22"
20
21 SDEPEND="${COMMON_DEPEND}
22 ${X11_DEPEND}
23 >= app-text/docbook-xsl-stylesheets-1.78
24 >= dev-util/pkgconfig-0.25
25 >= virtual/kernel-headers"
26
27 SRCFILE="${PNAME}-${PVER}.tar.xz"
28 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
29
30 sminclude mtools systemd cleanutils
31
32 SRC_URI=(
33 http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE}
34 mirror://${PNAME}/${SRCFILE}
35 mirror://${PNAME}/boot-duration
36 mirror://${PNAME}/charge.plymouth
37 mirror://${PNAME}/magellan-sign.png
38 mirror://${PNAME}/${PNAME}-0.8.9-dont-timeout-waiting.patch
39 )
40
41 UP2DATE="updatecmd http://www.freedesktop.org/software/plymouth/releases/ | highesttarball xz"
42
43 split_info_plymouth()
44 {
45 DESCRIPTION="Graphical Boot Animation and Logger."
46 DEPEND="${COMMON_DEPEND}"
47 }
48
49 split_info_plymouth-x11()
50 {
51 DESCRIPTION="X11 renderer of plymouth, for development purposes only."
52 DEPEND="== sys-apps/plymouth-${PVER}
53 ${X11_DEPEND}"
54 }
55
56 src_prepare()
57 {
58 munpack ${SRCFILE} || die
59 cd ${SRCDIR}
60
61 # timeout causes things to fail, so never timeout
62 mpatch ${PNAME}-0.8.9-dont-timeout-waiting.patch || die
63
64 # fix systemdunitdir location
65 sed -i \
66 "s:SYSTEMD_UNIT_DIR=/lib/systemd/system:SYSTEMD_UNIT_DIR=$(mget-systemd-unit-dir):g" \
67 configure.ac || die
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 # keep /usr/lib/plymouth as libexecdir to satisfy dracut
81 mconfigure \
82 --localstatedir=/var \
83 --libexecdir=/usr/lib/${PNAME} \
84 --enable-tracing \
85 --disable-tests \
86 --disable-gdm-transition \
87 --enable-systemd-integration \
88 --without-system-root-install \
89 --without-log-viewer \
90 --with-logo=/usr/share/plymouth/magellan-logo.png \
91 --disable-libkms \
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 }