vp-build/xbps-src/helpers/python-module.sh
Juan RP a267c68cbb helpers/python-module: set prefix to /usr.
--HG--
extra : convert_revision : 2d0ddde369fa4f4e69a183e9ee7a41beb7cb50be
2009-12-23 02:06:45 +01:00

15 lines
318 B
Bash

#
# This helper is for templates installing python modules.
#
do_install()
{
if [ -z "$make_install_args" ]; then
make_install_args="--prefix=/usr --root=$DESTDIR"
fi
cd ${wrksrc} || return 1
sed -i 's|man/man1|share/man/man1|g' setup.py || return 1
python setup.py install ${make_install_args} || return 1
}