Contents of /trunk/core/plymouth/plymouth-0.8.4_20110801-r3.smage2
Parent Directory | Revision Log
Revision 10177 -
(show annotations)
(download)
Thu Jan 19 11:00:33 2012 UTC (12 years, 8 months ago) by niro
File size: 2708 byte(s)
Thu Jan 19 11:00:33 2012 UTC (12 years, 8 months ago) by niro
File size: 2708 byte(s)
-import from magellan-next
1 | # $Id$ |
2 | |
3 | PNAME="plymouth" |
4 | PVER="0.8.4_20110801" |
5 | PBUILD="r3" |
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=">= media-libs/libpng-1.5 |
13 | >= x11-libs/pango-1.28 |
14 | >= x11-libs/cairo-1.20 |
15 | >= x11-libs/gtk2+-2.24 |
16 | >= x11-libs/libdrm-2.4.30" |
17 | |
18 | SDEPEND=">= dev-util/pkgconfig-0.25 |
19 | >= virtual/kernel-headers" |
20 | |
21 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
22 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
23 | |
24 | sminclude mtools |
25 | |
26 | SRC_URI=( |
27 | http://www.freedesktop.org/software/${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/${SRCFILE} |
29 | mirror://${PNAME}/boot-duration |
30 | mirror://${PNAME}/charge.plymouth |
31 | mirror://${PNAME}/magellan-sign.png |
32 | ) |
33 | |
34 | UP2DATE="updatecmd http://www.freedesktop.org/software/plymouth/releases/ | lasttarball" |
35 | |
36 | src_prepare() |
37 | { |
38 | munpack ${SRCFILE} || die |
39 | cd ${SRCDIR} |
40 | |
41 | # let new-kernel-pkg decide how to handle initramfs updates (dracut or mkinird) |
42 | cat > scripts/plymouth-update-initrd << EOF |
43 | #!/bin/bash |
44 | /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --install $(uname -r) |
45 | EOF |
46 | |
47 | # make charge to the default plugin |
48 | sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die |
49 | |
50 | # git - missing configure |
51 | mautoreconf || die |
52 | } |
53 | |
54 | src_compile() |
55 | { |
56 | cd ${SRCDIR} |
57 | |
58 | mconfigure \ |
59 | --localstatedir=/var \ |
60 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ |
61 | --enable-tracing \ |
62 | --disable-tests \ |
63 | --disable-gdm-transition \ |
64 | --enable-systemd-integration \ |
65 | --with-system-root-install \ |
66 | --without-log-viewer \ |
67 | --with-logo=/usr/share/plymouth/magellan-logo.png \ |
68 | --disable-static \ |
69 | || die |
70 | |
71 | mmake || die |
72 | } |
73 | |
74 | src_install() |
75 | { |
76 | cd ${SRCDIR} |
77 | mmake DESTDIR=${BINDIR} install || die |
78 | |
79 | # install magellan-logo |
80 | minstalldir /usr/share/plymouth || die |
81 | minstallfile -s magellan-sign.png /usr/share/plymouth/magellan-logo.png || die |
82 | |
83 | # install boot-duration for initrd |
84 | minstalldir /usr/share/plymouth || die |
85 | minstalldir /var/lib/plymouth || die |
86 | minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die |
87 | minstallfile -s boot-duration /var/lib/plymouth || die |
88 | |
89 | # install charge plugin from fedora |
90 | minstalldir /usr/share/plymouth/themes/charge || die |
91 | minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die |
92 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die |
93 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die |
94 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die |
95 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die |
96 | |
97 | minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die |
98 | } |