Magellan Linux

Annotation of /smage/trunk/core/plymouth/plymouth-0.9.5-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14840 - (hide annotations) (download)
Tue Aug 4 13:14:20 2020 UTC (3 years, 9 months ago) by niro
File size: 3914 byte(s)
-rediffed busybox patch
1 niro 14476 # $Id$
2    
3     PNAME="plymouth"
4     PVER="0.9.5"
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.64
13     >= media-libs/libpng-1.5
14     >= x11-libs/pango-1.44
15     >= x11-libs/cairo-1.16
16     >= x11-libs/libdrm-2.4.102"
17    
18     SDEPEND=">= dev-util/pkgconfig-0.25
19     >= virtual/kernel-headers
20     >= x11-libs/gtk2+-2.24
21     >= x11-libs/gtk3+-3.24
22     >= dev-libs/libxslt-1.1
23     >= app-text/docbook-xsl-stylesheets-1.76
24     >= dev-libs/glib2-dev-2.64
25     >= media-libs/libpng-dev-1.5
26     >= x11-libs/pango-dev-1.44
27     >= x11-libs/cairo-dev-1.16
28     >= x11-libs/libdrm-dev-2.4.102
29     >= x11-libs/gtk2+-dev-2.24
30     >= x11-libs/gtk3+-dev-3.24
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 niro 14840 mirror://${PNAME}/${PNAME}-0.9.5-busybox-compat.patch
62 niro 14476 )
63    
64     UP2DATE="updatecmd http://www.freedesktop.org/software/plymouth/releases/ | highesttarball xz"
65    
66     src_prepare()
67     {
68     munpack ${SRCFILE} || die
69     cd ${SRCDIR}
70    
71     # be busybox compat
72 niro 14840 mpatch ${PNAME}-0.9.5-busybox-compat.patch || die
73 niro 14476
74     # fix systemdunitdir location
75     sed -i \
76     "s:SYSTEMD_UNIT_DIR=/lib/systemd/system:SYSTEMD_UNIT_DIR=$(mget-systemd-unit-dir):g" \
77     configure.ac || die
78    
79     # make charge to the default plugin
80     sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die
81    
82     # git - missing configure
83     mautoreconf || die
84     }
85    
86     src_compile()
87     {
88     cd ${SRCDIR}
89    
90     mconfigure \
91     --localstatedir=/var \
92     --libexecdir=/usr/$(mlibdir)/${PNAME} \
93     --enable-tracing \
94     --disable-tests \
95     --disable-gdm-transition \
96     --enable-systemd-integration \
97     --without-system-root-install \
98     --without-log-viewer \
99     --with-logo=/usr/share/plymouth/magellan-logo.png \
100     --disable-libkms \
101     --with-background-start-color-stop=0xff0000 \
102     --with-background-end-color-stop=0x00ff00 \
103     --with-background-color=0x0000ff \
104     || die
105    
106     mmake || die
107     }
108    
109     alx_generic_src_install()
110     {
111     cd ${SRCDIR}
112     mmake DESTDIR=${BINDIR} install || die
113    
114     # install magellan-logo
115     minstalldir /usr/share/plymouth || die
116     minstallfile -s magellan-sign.png /usr/share/plymouth/magellan-logo.png || die
117    
118     # install boot-duration for initrd
119     minstalldir /usr/share/plymouth || die
120     minstalldir /var/lib/plymouth || die
121     minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die
122     minstallfile -s boot-duration /var/lib/plymouth || die
123    
124     # install charge plugin from fedora
125     minstalldir /usr/share/plymouth/themes/charge || die
126     minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die
127     minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die
128     minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die
129     minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die
130     minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die
131    
132     minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die
133     }