Contents of /smage/trunk/core/plymouth/plymouth-0.9.3-r1.smage2
Parent Directory | Revision Log
Revision 11064 -
(show annotations)
(download)
Mon Sep 4 08:23:22 2017 UTC (7 years ago) by niro
File size: 4082 byte(s)
Mon Sep 4 08:23:22 2017 UTC (7 years ago) by niro
File size: 4082 byte(s)
auto added: ver bump to 0.9.3-r1
1 | # $Id$ |
2 | |
3 | PNAME="plymouth" |
4 | PVER="0.9.3" |
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.52 |
13 | >= media-libs/libpng-1.5 |
14 | >= x11-libs/pango-1.40 |
15 | >= x11-libs/cairo-1.14 |
16 | >= x11-libs/libdrm-2.4.83" |
17 | |
18 | SDEPEND=">= dev-util/pkgconfig-0.25 |
19 | >= virtual/kernel-headers |
20 | >= x11-libs/gtk2+-2.24 |
21 | >= x11-libs/gtk3+-3.22 |
22 | >= dev-libs/libxslt-1.1 |
23 | >= app-text/docbook-xsl-stylesheets-1.76 |
24 | >= dev-libs/glib2-dev-2.52 |
25 | >= media-libs/libpng-dev-1.5 |
26 | >= x11-libs/pango-dev-1.40 |
27 | >= x11-libs/cairo-dev-1.14 |
28 | >= x11-libs/libdrm-dev-2.4.83 |
29 | >= x11-libs/gtk2+-dev-2.24 |
30 | >= x11-libs/gtk3+-dev-3.22 |
31 | >= dev-libs/libxslt-dev-1.1" |
32 | |
33 | SRCFILE="${PNAME}-${PVER}.tar.xz" |
34 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
35 | |
36 | ALX_PKG_KEEP="etc/plymouth |
37 | usr/bin/plymouth |
38 | usr/sbin/plymouthd |
39 | usr/sbin/plymouth-set-default-theme |
40 | usr/share/plymouth/default-boot-duration |
41 | usr/share/plymouth/magellan-logo.png |
42 | usr/share/plymouth/plymouthd.defaults |
43 | usr/share/plymouth/themes/text |
44 | usr/$(mlibdir)/*.so.* |
45 | usr/$(mlibdir)/plymouth/script.so |
46 | usr/$(mlibdir)/plymouth/text.so |
47 | usr/$(mlibdir)/plymouth/plymouth/plymouth-generate-initrd |
48 | usr/$(mlibdir)/plymouth/plymouth/plymouth-populate-initrd |
49 | usr/$(mlibdir)/plymouth/plymouth/plymouth-update-initrd |
50 | usr/$(mlibdir)/plymouth/renderers/drm.so |
51 | usr/$(mlibdir)/plymouth/renderers/frame-buffer.so |
52 | usr/lib/systemd" |
53 | sminclude mtools systemd cleanutils alx-split |
54 | |
55 | SRC_URI=( |
56 | http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE} |
57 | mirror://${PNAME}/${SRCFILE} |
58 | mirror://${PNAME}/boot-duration |
59 | mirror://${PNAME}/charge.plymouth |
60 | mirror://${PNAME}/magellan-sign.png |
61 | mirror://${PNAME}/${PNAME}-0.8.8-busybox-compat.patch |
62 | mirror://${PNAME}/${PNAME}-0.8.9-dont-timeout-waiting.patch |
63 | ) |
64 | |
65 | UP2DATE="updatecmd http://www.freedesktop.org/software/plymouth/releases/ | highesttarball xz" |
66 | |
67 | src_prepare() |
68 | { |
69 | munpack ${SRCFILE} || die |
70 | cd ${SRCDIR} |
71 | |
72 | # timeout causes things to fail, so never timeout |
73 | mpatch ${PNAME}-0.8.9-dont-timeout-waiting.patch || die |
74 | |
75 | # be busybox compat |
76 | mpatch ${PNAME}-0.8.8-busybox-compat.patch || die |
77 | |
78 | # fix systemdunitdir location |
79 | sed -i \ |
80 | "s:SYSTEMD_UNIT_DIR=/lib/systemd/system:SYSTEMD_UNIT_DIR=$(mget-systemd-unit-dir):g" \ |
81 | configure.ac || die |
82 | |
83 | # make charge to the default plugin |
84 | sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die |
85 | |
86 | # git - missing configure |
87 | mautoreconf || die |
88 | } |
89 | |
90 | src_compile() |
91 | { |
92 | cd ${SRCDIR} |
93 | |
94 | mconfigure \ |
95 | --localstatedir=/var \ |
96 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ |
97 | --enable-tracing \ |
98 | --disable-tests \ |
99 | --disable-gdm-transition \ |
100 | --enable-systemd-integration \ |
101 | --without-system-root-install \ |
102 | --without-log-viewer \ |
103 | --with-logo=/usr/share/plymouth/magellan-logo.png \ |
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 | } |