# $Id$ PNAME="plymouth" PVER="0.8.4_20110603" PBUILD="r2" PCATEGORIE="sys-apps" DESCRIPTION="Graphical Boot Animation and Logger." HOMEPAGE="http://www.freedesktop.org/wiki/Software/Plymouth" DEPEND=">= media-libs/libpng-1.5 >= x11-libs/pango-1.28 >= x11-libs/cairo-1.20" SDEPEND=">= dev-util/pkgconfig-0.25 >= virtual/kernel-headers" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools SRC_URI=( http://www.freedesktop.org/software/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/boot-duration mirror://${PNAME}/charge.plymouth ) UP2DATE="updatecmd http://www.freedesktop.org/software/plymouth/releases/ | lasttarball" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # let new-kernel-pkg decide how to handle initramfs updates (dracut or mkinird) cat > scripts/plymouth-update-initrd << EOF #!/bin/bash /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --install $(uname -r) EOF # make charge to the default plugin sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die # git - missing configure mautoreconf || die } src_compile() { cd ${SRCDIR} mconfigure \ --libexecdir=/usr/$(mlibdir)/${PNAME} \ --enable-tracing \ --disable-tests \ --disable-gdm-transition \ --enable-systemd-integration \ --with-system-root-install \ --without-log-viewer \ || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # install boot-duration for initrd minstalldir /usr/share/plymouth || die minstalldir /var/lib/plymouth || die minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die minstallfile -s boot-duration /var/lib/plymouth || die # install charge plugin from fedora minstalldir /usr/share/plymouth/themes/charge || die minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die }