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