Magellan Linux

Contents of /smage/trunk/core/plymouth/plymouth-0.9.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6395 - (show annotations) (download)
Wed Apr 1 09:11:16 2015 UTC (9 years, 2 months ago) by niro
File size: 3580 byte(s)
auto added: ver bump to 0.9.2-r1
1 # $Id$
2
3 PNAME="plymouth"
4 PVER="0.9.2"
5 PBUILD="r1"
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.40
13 >= media-libs/libpng-1.5
14 >= x11-libs/pango-1.36
15 >= x11-libs/cairo-1.12
16 >= x11-libs/libdrm-2.4.54"
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/share/plymouth/themes/text
33 usr/$(mlibdir)/*.so.*
34 usr/$(mlibdir)/plymouth/script.so
35 usr/$(mlibdir)/plymouth/text.so
36 usr/$(mlibdir)/plymouth/plymouth/plymouth-generate-initrd
37 usr/$(mlibdir)/plymouth/plymouth/plymouth-populate-initrd
38 usr/$(mlibdir)/plymouth/plymouth/plymouth-update-initrd
39 usr/$(mlibdir)/plymouth/renderers/drm.so
40 usr/$(mlibdir)/plymouth/renderers/frame-buffer.so
41 usr/lib/systemd"
42 sminclude mtools cleanutils alx-split
43
44 SRC_URI=(
45 http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE}
46 mirror://${PNAME}/${SRCFILE}
47 mirror://${PNAME}/boot-duration
48 mirror://${PNAME}/charge.plymouth
49 mirror://${PNAME}/magellan-sign.png
50 mirror://${PNAME}/${PNAME}-0.8.8-busybox-compat.patch
51 )
52
53 UP2DATE="updatecmd http://www.freedesktop.org/software/plymouth/releases/ | highesttarball"
54
55 src_prepare()
56 {
57 munpack ${SRCFILE} || die
58 cd ${SRCDIR}
59
60 # be busybox compat
61 mpatch ${PNAME}-0.8.8-busybox-compat.patch || die
62
63 # fix systemdunitdir location
64 sed -i \
65 's:SYSTEMD_UNIT_DIR=/lib/systemd/system:SYSTEMD_UNIT_DIR=/usr/lib/systemd/system:g' \
66 configure.ac || die
67
68 # make charge to the default plugin
69 sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die
70
71 # git - missing configure
72 mautoreconf || die
73 }
74
75 src_compile()
76 {
77 cd ${SRCDIR}
78
79 mconfigure \
80 --localstatedir=/var \
81 --libexecdir=/usr/$(mlibdir)/${PNAME} \
82 --enable-tracing \
83 --disable-tests \
84 --disable-gdm-transition \
85 --enable-systemd-integration \
86 --without-system-root-install \
87 --without-log-viewer \
88 --with-logo=/usr/share/plymouth/magellan-logo.png \
89 --disable-libkms \
90 --with-background-start-color-stop=0xff0000 \
91 --with-background-end-color-stop=0x00ff00 \
92 --with-background-color=0x0000ff \
93 || die
94
95 mmake || die
96 }
97
98 alx_generic_src_install()
99 {
100 cd ${SRCDIR}
101 mmake DESTDIR=${BINDIR} install || die
102
103 # install magellan-logo
104 minstalldir /usr/share/plymouth || die
105 minstallfile -s magellan-sign.png /usr/share/plymouth/magellan-logo.png || die
106
107 # install boot-duration for initrd
108 minstalldir /usr/share/plymouth || die
109 minstalldir /var/lib/plymouth || die
110 minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die
111 minstallfile -s boot-duration /var/lib/plymouth || die
112
113 # install charge plugin from fedora
114 minstalldir /usr/share/plymouth/themes/charge || die
115 minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die
116 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die
117 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die
118 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die
119 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die
120
121 minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die
122 }