Replace run_stuff with post/pre_<stage> variables.

If there's a file called "$pkgname.{pre,post}_{configure,build,install}
it will be automatically executed. In addition to this, templates may
use {pre,post}_{configure,build,install}_cmd variables to run arbitrary
commands.

--HG--
extra : convert_revision : 62ad549b8299689ecf8c833e73eda436ffdb7aa7
This commit is contained in:
Juan RP
2008-10-27 03:56:42 +01:00
parent e3ac7fd84c
commit c06defc719
22 changed files with 17 additions and 19 deletions

View File

@@ -17,7 +17,7 @@ long_desc="
support and more than 8 bits per channel."
# This needs GNU gettext >= 0.16.
run_stuff_before_configure_cmd=". $XBPS_TMPLHELPDIR/external-gettext.sh"
pre_configure_cmd=". $XBPS_TMPLHELPDIR/external-gettext.sh"
# Update shared-mime-info database.
postinstall_helpers="update-mimedb.sh"

View File

@@ -19,4 +19,4 @@ long_desc="
run_depends="glibc-2.8"
# The install target fails if the dir is not there already.
run_stuff_before_install_cmd="mkdir -p $XBPS_DESTDIR/$pkgname-$version/usr"
pre_install_cmd="mkdir -p $XBPS_DESTDIR/$pkgname-$version/usr"