pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GITHUB_SUBMODULES format



On Thu, Aug 29, 2024 at 10:03:59AM +0530, Mayuresh wrote:
> Can someone please share GITHUB_SUBMODULES format?
> 
> I could not find it in pkgsrc.txt.

$ cd /usr/pkgsrc/any/package
$ make help topic=GITHUB_SUBMODULES
===> ../../mk/fetch/github.mk (keywords: DISTNAME GITHUB_PROJECT GITHUB_RELEASE GITHUB_SUBMODULES GITHUB_TAG GITHUB_TYPE MASTER_SITES github):
# github.com master site handling
#
# To use, set in Makefile:
#
# DISTNAME=     exampleproject-1.2
# MASTER_SITES= ${MASTER_SITE_GITHUB:=accountname/}
#
# The following variables alter github.mk behavior:
#
# GITHUB_PROJECT        defaults to PKGBASE
# GITHUB_TAG            defaults to PKGVERSION_NOREV
#                       sometimes you want to override with v${PKGVERSION_NOREV}
#                       SHA-1 commit ids are also acceptable
# GITHUB_RELEASE        defaults to not defined, set this to ${DISTNAME}
#                       when packaging a release not based on a git tag.
# GITHUB_SUBMODULES     manually set submodule information:
#                       values should be:
#                       GitHub_user GitHub_project tag_or_hash submodule_path
# GITHUB_TYPE           overrides the autodetected MASTER_SITE URL scheme:
#
# "tag"
# This is the default when GITHUB_RELEASE is not defined. Example URL:
# http://github.com/acct/${GITHUB_PROJECT}/archive/{GITHUB_TAG}.tar.gz
#
# "release"
# This is the default when GITHUB_RELEASE is set. Example URL:
# http://github.com/acct/${GITHUB_PROJECT}/releases/download/${GITHUB_RELEASE}/${DISTNAME}.tar.gz
#

So

GITHUB_SUBMODULES+=     actboy168 luamake c086f35cfad0236f74ba380d51f211c52a2c8abc 3rd/luamake

will fetch github.com/actboy168/luamake as of commit c086f35cfad0236f74ba380d51f211c52a2c8abc into ${WRKSRC}/3rd/luamake

 Thomas


Home | Main Index | Thread Index | Old Index