svn commit: r476236 - in head/devel: . libubox
Mathieu Arnold
mat at FreeBSD.org
Fri Aug 3 07:59:05 UTC 2018
On Thu, Aug 02, 2018 at 03:04:40PM +0000, Martin Matuska wrote:
> +maintainer-fetch:
> + @${MAKE} clean
> + @${MKDIR} ${WRKSRC}
> + @git clone ${LIBUBOX_GITURL} ${WRKSRC}
> + @cd ${WRKSRC} && git reset --hard ${DISTVERSIONSUFFIX:S|^-||}
> + @${TAR} -c -J -f ${_DISTDIR:S|/$||}/${DISTFILES:M${PORTNAME}-*} \
> + -C ${WRKDIR} --exclude .git ${WRKSRC:S|${WRKDIR}/||}
> + @${MAKE} makesum
> + @${MAKE} clean
You may want to look at git-archive(1), it would replace the reset and
tar. Something like:
git archive --format=tar.gz --prefix=${DISTNAME}/ ${DISTVERSION} > ${_DISTDIR}/${DISTNAME}.tar.Gz
--
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20180803/6b11bf97/attachment.sig>
More information about the svn-ports-all
mailing list