# $Id$ PNAME="mage" PVER="0.4.19" PBUILD="r1" PCATEGORIE="app-mage" STATE="unstable" DESCRIPTION="Magellan Package Manager." HOMEPAGE="http://magellan-linux.de/" DEPEND="" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" SRC_URI=( mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-0.4.19-mcore.patch mirror://${PNAME}/${PNAME}-0.4.19-busybox.patch mirror://${PNAME}/${PNAME}-0.4.19-smage-busybox.patch mirror://${PNAME}/${PNAME}-0.4.19-mage-busybox.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # mcore specific patches mpatch ${PNAME}-0.4.19-mcore.patch || die mpatch ${PNAME}-0.4.19-busybox.patch || die mpatch ${PNAME}-0.4.19-smage-busybox.patch || die mpatch ${PNAME}-0.4.19-mage-busybox.patch || die } src_install() { cd ${SRCDIR} make DESTDIR=${BINDIR} install || die # fix version echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die } postinstall() { local PVER PVER="$(echo ${PKGNAME} | cut -d- -f2)" echo echo -e "Important:" echo -e "\tIf you upgraded mage from a version < ${PVER}," echo -e "\tcheck '/etc/mage.rc.example' for new pathnames" echo -e "\tand copy expected files there." echo -e "\tEdit your /etc/mage.rc that it fits to the example file." echo echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link" echo -e "\tit to /etc/mage-profile." echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'" echo }