Contents of /smage/trunk/core/plymouth/plymouth-0.8.5.1-r1.smage2
Parent Directory | Revision Log
Revision 3983 -
(show annotations)
(download)
Fri Jul 27 18:49:30 2012 UTC (12 years, 1 month ago) by niro
File size: 2929 byte(s)
Fri Jul 27 18:49:30 2012 UTC (12 years, 1 month ago) by niro
File size: 2929 byte(s)
auto added: ver bump to 0.8.5.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="plymouth" |
4 | PVER="0.8.5.1" |
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.32 |
13 | >= media-libs/libpng-1.5 |
14 | >= x11-libs/pango-1.30 |
15 | >= x11-libs/cairo-1.20 |
16 | >= x11-libs/libdrm-2.4.34" |
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 | sminclude mtools cleanutils |
26 | |
27 | SRC_URI=( |
28 | http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE} |
29 | mirror://${PNAME}/${SRCFILE} |
30 | mirror://${PNAME}/boot-duration |
31 | mirror://${PNAME}/charge.plymouth |
32 | mirror://${PNAME}/magellan-sign.png |
33 | ) |
34 | |
35 | UP2DATE="updatecmd http://www.freedesktop.org/software/plymouth/releases/ | lasttarball" |
36 | |
37 | src_prepare() |
38 | { |
39 | munpack ${SRCFILE} || die |
40 | cd ${SRCDIR} |
41 | |
42 | # fix systemdunitdir location |
43 | sed -i \ |
44 | 's:SYSTEMD_UNIT_DIR=/lib/systemd/system:SYSTEMD_UNIT_DIR=/usr/lib/systemd/system:g' \ |
45 | configure.ac || die |
46 | |
47 | # let new-kernel-pkg decide how to handle initramfs updates (dracut or mkinird) |
48 | cat > scripts/plymouth-update-initrd << EOF |
49 | #!/bin/bash |
50 | /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --install $(uname -r) |
51 | EOF |
52 | |
53 | # make charge to the default plugin |
54 | sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die |
55 | |
56 | # git - missing configure |
57 | mautoreconf || die |
58 | } |
59 | |
60 | src_compile() |
61 | { |
62 | cd ${SRCDIR} |
63 | |
64 | mconfigure \ |
65 | --localstatedir=/var \ |
66 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ |
67 | --enable-tracing \ |
68 | --disable-tests \ |
69 | --disable-gdm-transition \ |
70 | --enable-systemd-integration \ |
71 | --without-system-root-install \ |
72 | --without-log-viewer \ |
73 | --with-logo=/usr/share/plymouth/magellan-logo.png \ |
74 | --disable-static \ |
75 | --disable-libdrm_nouveau \ |
76 | || die |
77 | |
78 | mmake || die |
79 | } |
80 | |
81 | src_install() |
82 | { |
83 | cd ${SRCDIR} |
84 | mmake DESTDIR=${BINDIR} install || die |
85 | |
86 | # install magellan-logo |
87 | minstalldir /usr/share/plymouth || die |
88 | minstallfile -s magellan-sign.png /usr/share/plymouth/magellan-logo.png || die |
89 | |
90 | # install boot-duration for initrd |
91 | minstalldir /usr/share/plymouth || die |
92 | minstalldir /var/lib/plymouth || die |
93 | minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die |
94 | minstallfile -s boot-duration /var/lib/plymouth || die |
95 | |
96 | # install charge plugin from fedora |
97 | minstalldir /usr/share/plymouth/themes/charge || die |
98 | minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die |
99 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die |
100 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die |
101 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die |
102 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die |
103 | |
104 | minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die |
105 | } |