# $Id$ PNAME="musl" PVER="1.1.16" PBUILD="r2" PCAT="sys-libs" DESCRIPTION="Lightweight implementation of C standard library." HOMEPAGE="http://www.musl-libc.org/" DEPEND="" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" # keep static libs to build a static busybox msetfeature "static" sminclude mtools SRC_URI=( http://www.musl-libc.org/releases/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd http://www.musl-libc.org/download.html | grep "${PNAME}-" | highesttarball gz" src_prepare() { # not a tar gz but a normal tar archive tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || die } src_compile() { cd ${SRCDIR} ./configure --prefix=/usr/$(mlibdir)/musl --exec-prefix=/usr --syslibdir=/usr/$(mlibdir) --enable-wrapper=all || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # honor usr-move minstalldir /usr/$(mlibdir) || die minstalldocs COPYRIGHT README || die }