void-packages/xbps-src/helpers/python-module.sh
Juan RP 90204b7b28 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.
2011-10-24 14:12:09 +02:00

13 lines
277 B
Bash

#
# This helper is for templates installing python modules.
#
do_build() {
python setup.py build ${make_build_args}
}
do_install() {
if [ -z "$make_install_args" ]; then
make_install_args="--prefix=/usr --root=$DESTDIR"
fi
python setup.py install ${make_install_args}
}