Implement building packages from bzr/git/hg/svn/etc
Currently xbps-src can use only tarballs. It'll be great to fetch sources directly from repositories.
Blueprint information
Related branches
Related bugs
Sprints
Whiteboard
I added code to fetch sources in ${XBPS_BUILDDIR} with your custom command. This is how it works:
In a build template "templates/
The "nofetch" and "noextract" variables must be set and a function must be used to fetch
the sources, like:
do_fetch()
{
echo "Fetching sources via git repository..."
git clone git://foo.
}
For example to make a build template for XBPS that fetches the sources from bzr latest
code is the following:
---- templates/
pkgname=
build_style=
version="$(date +%F)"
make_install_
short_desc="..."
long_desc="..."
nofetch=yes
noextract=yes
conf_files="..."
Add_dependency ...
do_fetch()
{
msg_normal "Fetching HEAD bzr branch from launchpad..."
bzr branch lp:xbps ${pkgname}
}
-------
Also don't forget that you can do everything you need if you use "build_
fetch, configure, build and install is all handled in the "do_install()" function.