# $Id$ PNAME="slim" PVER="1.3.2" PBUILD="r1" PCATEGORIE="x11-misc" STATE="unstable" DESCRIPTION="SLiM is a Desktop-independent graphical login manager for X11." HOMEPAGE="http://slim.berlios.de/" DEPEND=">= x11-libs/libXmu-1.1 >= x11-libs/libX11-1.4 >= x11-libs/libXpm-3.9 >= x11-libs/libXft-2.2 >= media-libs/libpng-1.4 >= media-libs/libjpeg-8 >= x11-apps/xauth-1.0.5" SDEPEND=">= dev-util/pkgconfig-0.25 >= x11-proto/xproto-7.0.20 >= sys-apps/sed-4" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" MCORE_ONLY_KEEP="etc/slim.conf usr/bin/slim usr/share/slim/themes/default" sminclude mbuild mcore-split SRC_URI=( http://download.berlios.de/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-restart-xserver-if-killed.patch mirror://${PNAME}/${PNAME}-${PVER}-fix-keyboard-in-tty-from-which-slim-is-lauched.patch mirror://${PNAME}/${PNAME}-${PVER}-fix-SIGTERM-freeze.patch ) UP2DATE="updatecmd_berlios ${PNAME}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # restart the xserver mpatch ${PNAME}-${PVER}-restart-xserver-if-killed.patch || die # fix keyboard issues mpatch ${PNAME}-${PVER}-fix-keyboard-in-tty-from-which-slim-is-lauched.patch || die # fix a sigterm segfault mpatch ${PNAME}-${PVER}-fix-SIGTERM-freeze.patch || die # fix cflags and ldflags sed -i \ -e "s:^\(CFLAGS=\).*:\1-I. $(pkg-config --cflags freetype2 libpng x11):" \ -e "s:^\(LDFLAGS=\).*:\1$(pkg-config --libs xft freetype2 libpng xmu) -ljpeg -lz -lm -lcrypt -lrt:" \ -e "s:^\(MANDIR=\).*:\1/usr/share/man:" \ Makefile || die # rename sim.lock to sim.pid and enable daemon mode by default sed -i -e "s:/var/run/slim.lock:/var/run/slim.pid:" \ -e "s:# daemon.*:daemon\tyes:" \ slim.conf || die } src_compile() { cd ${SRCDIR} mmake || die } mcore_generic_src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # install a custom slim.conf echo -e ${COLGREEN}" injecting custom slim-configs"${COLDEFAULT} mcinjectfile slim.conf /etc || die }