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