Contents of /smage/trunk/core/plymouth/plymouth-0.8.8_20130902-r6.smage2
Parent Directory | Revision Log
Revision 10435 -
(show annotations)
(download)
Tue Aug 22 11:10:34 2017 UTC (7 years, 1 month ago) by niro
File size: 4083 byte(s)
Tue Aug 22 11:10:34 2017 UTC (7 years, 1 month ago) by niro
File size: 4083 byte(s)
auto added: ver bump to 0.8.8_20130902-r6
1 | # $Id$ |
2 | |
3 | PNAME="plymouth" |
4 | PVER="0.8.8_20130902" |
5 | PBUILD="r6" |
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.44 |
13 | >= media-libs/libpng-1.5 |
14 | >= x11-libs/pango-1.36 |
15 | >= x11-libs/cairo-1.14 |
16 | >= x11-libs/libdrm-2.4.61" |
17 | |
18 | SDEPEND=">= dev-util/pkgconfig-0.25 |
19 | >= virtual/kernel-headers |
20 | >= x11-libs/gtk2+-2.24 |
21 | >= dev-libs/libxslt-1.1 |
22 | >= app-text/docbook-xsl-stylesheets-1.76 |
23 | >= dev-libs/glib2-dev-2.44 |
24 | >= media-libs/libpng-dev-1.5 |
25 | >= x11-libs/pango-dev-1.36 |
26 | >= x11-libs/cairo-dev-1.14 |
27 | >= x11-libs/libdrm-dev-2.4.61 |
28 | >= x11-libs/gtk2+-dev-2.24 |
29 | >= dev-libs/libxslt-dev-1.1" |
30 | |
31 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
32 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
33 | |
34 | ALX_PKG_KEEP="etc/plymouth |
35 | usr/bin/plymouth |
36 | usr/sbin/plymouthd |
37 | usr/sbin/plymouth-set-default-theme |
38 | usr/share/plymouth/default-boot-duration |
39 | usr/share/plymouth/magellan-logo.png |
40 | usr/share/plymouth/plymouthd.defaults |
41 | usr/share/plymouth/themes/text |
42 | usr/$(mlibdir)/*.so.* |
43 | usr/$(mlibdir)/plymouth/script.so |
44 | usr/$(mlibdir)/plymouth/text.so |
45 | usr/$(mlibdir)/plymouth/plymouth/plymouth-generate-initrd |
46 | usr/$(mlibdir)/plymouth/plymouth/plymouth-populate-initrd |
47 | usr/$(mlibdir)/plymouth/plymouth/plymouth-update-initrd |
48 | usr/$(mlibdir)/plymouth/renderers/drm.so |
49 | usr/$(mlibdir)/plymouth/renderers/frame-buffer.so |
50 | usr/lib/systemd" |
51 | sminclude mtools systemd cleanutils alx-split |
52 | |
53 | SRC_URI=( |
54 | http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE} |
55 | mirror://${PNAME}/${SRCFILE} |
56 | mirror://${PNAME}/boot-duration |
57 | mirror://${PNAME}/charge.plymouth |
58 | mirror://${PNAME}/magellan-sign.png |
59 | mirror://${PNAME}/${PNAME}-0.8.8-busybox-compat.patch |
60 | mirror://${PNAME}/${PNAME}-0.8.9-dont-timeout-waiting.patch |
61 | ) |
62 | |
63 | UP2DATE="updatecmd http://www.freedesktop.org/software/plymouth/releases/ | lasttarball" |
64 | |
65 | src_prepare() |
66 | { |
67 | munpack ${SRCFILE} || die |
68 | cd ${SRCDIR} |
69 | |
70 | # timeout causes things to fail, so never timeout |
71 | mpatch ${PNAME}-0.8.9-dont-timeout-waiting.patch || die |
72 | |
73 | # be busybox compat |
74 | mpatch ${PNAME}-0.8.8-busybox-compat.patch || die |
75 | |
76 | # fix systemdunitdir location |
77 | sed -i \ |
78 | 's:SYSTEMD_UNIT_DIR=/lib/systemd/system:SYSTEMD_UNIT_DIR=/usr/lib/systemd/system:g' \ |
79 | configure.ac || die |
80 | |
81 | # make charge to the default plugin |
82 | sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die |
83 | |
84 | # git - missing configure |
85 | mautoreconf || die |
86 | } |
87 | |
88 | src_compile() |
89 | { |
90 | cd ${SRCDIR} |
91 | |
92 | mconfigure \ |
93 | --localstatedir=/var \ |
94 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ |
95 | --enable-tracing \ |
96 | --disable-tests \ |
97 | --disable-gdm-transition \ |
98 | --enable-systemd-integration \ |
99 | --without-system-root-install \ |
100 | --without-log-viewer \ |
101 | --with-logo=/usr/share/plymouth/magellan-logo.png \ |
102 | --disable-static \ |
103 | --disable-libdrm_nouveau \ |
104 | --disable-libkms \ |
105 | --with-background-start-color-stop=0xff0000 \ |
106 | --with-background-end-color-stop=0x00ff00 \ |
107 | --with-background-color=0x0000ff \ |
108 | || die |
109 | |
110 | mmake || die |
111 | } |
112 | |
113 | alx_generic_src_install() |
114 | { |
115 | cd ${SRCDIR} |
116 | mmake DESTDIR=${BINDIR} install || die |
117 | |
118 | # install magellan-logo |
119 | minstalldir /usr/share/plymouth || die |
120 | minstallfile -s magellan-sign.png /usr/share/plymouth/magellan-logo.png || die |
121 | |
122 | # install boot-duration for initrd |
123 | minstalldir /usr/share/plymouth || die |
124 | minstalldir /var/lib/plymouth || die |
125 | minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die |
126 | minstallfile -s boot-duration /var/lib/plymouth || die |
127 | |
128 | # install charge plugin from fedora |
129 | minstalldir /usr/share/plymouth/themes/charge || die |
130 | minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die |
131 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die |
132 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die |
133 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die |
134 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die |
135 | |
136 | minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die |
137 | } |