xbps-src: revamped build_style.

By default now it's assumed that if $build_style is not set, the template
uses 'custom-install' build, .e.g do_{build,configure,install}.

If it's set, a helper with the same name with .sh extension will be sourced
to set do_{build,configure,install} phases.

The exception is "meta-template" which currently it must be set via
build_style, probably will change in the future.
This commit is contained in:
Juan RP 2011-10-24 14:12:09 +02:00
parent 31452a3a22
commit 90204b7b28
9 changed files with 86 additions and 123 deletions

View file

@ -47,7 +47,7 @@ info_tmpl()
echo "maintainer: $maintainer"
[ -n "$homepage" ] && echo "Upstream URL: $homepage"
[ -n "$license" ] && echo "License(s): $license"
echo "build_style: $build_style"
[ -n "$build_style" ] && echo "build_style: $build_style"
for i in ${configure_args}; do
[ -n "$i" ] && echo "configure_args: $i"
done
@ -242,7 +242,7 @@ prepare_tmpl()
{
local REQ_VARS i found
REQ_VARS="pkgname version build_style short_desc long_desc"
REQ_VARS="pkgname version short_desc long_desc"
if [ "$build_style" = "meta-template" ]; then
nofetch=yes