# $Id$ PNAME="plymouth" PVER="0.8.8_20130902" PBUILD="r6" PCAT="sys-apps" DESCRIPTION="Graphical Boot Animation and Logger." HOMEPAGE="http://www.freedesktop.org/wiki/Software/Plymouth" DEPEND=">= dev-libs/glib2-2.44 >= media-libs/libpng-1.5 >= x11-libs/pango-1.36 >= x11-libs/cairo-1.14 >= x11-libs/libdrm-2.4.61" SDEPEND=">= dev-util/pkgconfig-0.25 >= virtual/kernel-headers >= x11-libs/gtk2+-2.24 >= dev-libs/libxslt-1.1 >= app-text/docbook-xsl-stylesheets-1.76 >= dev-libs/glib2-dev-2.44 >= media-libs/libpng-dev-1.5 >= x11-libs/pango-dev-1.36 >= x11-libs/cairo-dev-1.14 >= x11-libs/libdrm-dev-2.4.61 >= x11-libs/gtk2+-dev-2.24 >= dev-libs/libxslt-dev-1.1" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" ALX_PKG_KEEP="etc/plymouth usr/bin/plymouth usr/sbin/plymouthd usr/sbin/plymouth-set-default-theme usr/share/plymouth/default-boot-duration usr/share/plymouth/magellan-logo.png usr/share/plymouth/plymouthd.defaults usr/share/plymouth/themes/text usr/$(mlibdir)/*.so.* usr/$(mlibdir)/plymouth/script.so usr/$(mlibdir)/plymouth/text.so usr/$(mlibdir)/plymouth/plymouth/plymouth-generate-initrd usr/$(mlibdir)/plymouth/plymouth/plymouth-populate-initrd usr/$(mlibdir)/plymouth/plymouth/plymouth-update-initrd usr/$(mlibdir)/plymouth/renderers/drm.so usr/$(mlibdir)/plymouth/renderers/frame-buffer.so usr/lib/systemd" sminclude mtools systemd cleanutils alx-split SRC_URI=( http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/boot-duration mirror://${PNAME}/charge.plymouth mirror://${PNAME}/magellan-sign.png mirror://${PNAME}/${PNAME}-0.8.8-busybox-compat.patch mirror://${PNAME}/${PNAME}-0.8.9-dont-timeout-waiting.patch ) UP2DATE="updatecmd http://www.freedesktop.org/software/plymouth/releases/ | lasttarball" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # timeout causes things to fail, so never timeout mpatch ${PNAME}-0.8.9-dont-timeout-waiting.patch || die # be busybox compat mpatch ${PNAME}-0.8.8-busybox-compat.patch || die # fix systemdunitdir location sed -i \ 's:SYSTEMD_UNIT_DIR=/lib/systemd/system:SYSTEMD_UNIT_DIR=/usr/lib/systemd/system:g' \ configure.ac || die # 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 \ --localstatedir=/var \ --libexecdir=/usr/$(mlibdir)/${PNAME} \ --enable-tracing \ --disable-tests \ --disable-gdm-transition \ --enable-systemd-integration \ --without-system-root-install \ --without-log-viewer \ --with-logo=/usr/share/plymouth/magellan-logo.png \ --disable-static \ --disable-libdrm_nouveau \ --disable-libkms \ --with-background-start-color-stop=0xff0000 \ --with-background-end-color-stop=0x00ff00 \ --with-background-color=0x0000ff \ || die mmake || die } alx_generic_src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # install magellan-logo minstalldir /usr/share/plymouth || die minstallfile -s magellan-sign.png /usr/share/plymouth/magellan-logo.png || 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 }