xbps-src: libexec: simplify chdir to wrksrc/build_wrksrc.
This commit is contained in:
parent
7205e3dd7f
commit
f7543fb5b6
3 changed files with 5 additions and 23 deletions
|
@ -47,8 +47,6 @@ run_pkg_hooks pre-build
|
||||||
|
|
||||||
# Run pre_build()
|
# Run pre_build()
|
||||||
if [ ! -f $XBPS_PRE_BUILD_DONE ]; then
|
if [ ! -f $XBPS_PRE_BUILD_DONE ]; then
|
||||||
cd $wrksrc
|
|
||||||
[ -n "$build_wrksrc" ] && cd $build_wrksrc
|
|
||||||
if declare -f pre_build >/dev/null; then
|
if declare -f pre_build >/dev/null; then
|
||||||
run_func pre_build
|
run_func pre_build
|
||||||
touch -f $XBPS_PRE_BUILD_DONE
|
touch -f $XBPS_PRE_BUILD_DONE
|
||||||
|
@ -56,8 +54,6 @@ if [ ! -f $XBPS_PRE_BUILD_DONE ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run do_build()
|
# Run do_build()
|
||||||
cd $wrksrc
|
|
||||||
[ -n "$build_wrksrc" ] && cd $build_wrksrc
|
|
||||||
if declare -f do_build >/dev/null; then
|
if declare -f do_build >/dev/null; then
|
||||||
run_func do_build
|
run_func do_build
|
||||||
else
|
else
|
||||||
|
@ -76,8 +72,6 @@ touch -f $XBPS_BUILD_DONE
|
||||||
|
|
||||||
# Run post_build()
|
# Run post_build()
|
||||||
if [ ! -f $XBPS_POST_BUILD_DONE ]; then
|
if [ ! -f $XBPS_POST_BUILD_DONE ]; then
|
||||||
cd $wrksrc
|
|
||||||
[ -n "$build_wrksrc" ] && cd $build_wrksrc
|
|
||||||
if declare -f post_build >/dev/null; then
|
if declare -f post_build >/dev/null; then
|
||||||
run_func post_build
|
run_func post_build
|
||||||
touch -f $XBPS_POST_BUILD_DONE
|
touch -f $XBPS_POST_BUILD_DONE
|
||||||
|
|
|
@ -42,10 +42,6 @@ run_pkg_hooks pre-configure
|
||||||
|
|
||||||
# Run pre_configure()
|
# Run pre_configure()
|
||||||
if [ ! -f $XBPS_PRECONFIGURE_DONE ]; then
|
if [ ! -f $XBPS_PRECONFIGURE_DONE ]; then
|
||||||
cd $wrksrc
|
|
||||||
if [ -n "$build_wrksrc" ]; then
|
|
||||||
cd $build_wrksrc
|
|
||||||
fi
|
|
||||||
if declare -f pre_configure >/dev/null; then
|
if declare -f pre_configure >/dev/null; then
|
||||||
run_func pre_configure
|
run_func pre_configure
|
||||||
touch -f $XBPS_PRECONFIGURE_DONE
|
touch -f $XBPS_PRECONFIGURE_DONE
|
||||||
|
@ -53,10 +49,6 @@ if [ ! -f $XBPS_PRECONFIGURE_DONE ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run do_configure()
|
# Run do_configure()
|
||||||
cd $wrksrc
|
|
||||||
if [ -n "$build_wrksrc" ]; then
|
|
||||||
cd $build_wrksrc
|
|
||||||
fi
|
|
||||||
if declare -f do_configure >/dev/null; then
|
if declare -f do_configure >/dev/null; then
|
||||||
run_func do_configure
|
run_func do_configure
|
||||||
else
|
else
|
||||||
|
@ -75,10 +67,6 @@ touch -f $XBPS_CONFIGURE_DONE
|
||||||
|
|
||||||
# Run post_configure()
|
# Run post_configure()
|
||||||
if [ ! -f $XBPS_POSTCONFIGURE_DONE ]; then
|
if [ ! -f $XBPS_POSTCONFIGURE_DONE ]; then
|
||||||
cd $wrksrc
|
|
||||||
if [ -n "$build_wrksrc" ]; then
|
|
||||||
cd $build_wrksrc
|
|
||||||
fi
|
|
||||||
if declare -f post_configure >/dev/null; then
|
if declare -f post_configure >/dev/null; then
|
||||||
run_func post_configure
|
run_func post_configure
|
||||||
touch -f $XBPS_POSTCONFIGURE_DONE
|
touch -f $XBPS_POSTCONFIGURE_DONE
|
||||||
|
|
|
@ -28,14 +28,14 @@ XBPS_INSTALL_DONE="$wrksrc/.xbps_${sourcepkg}_${XBPS_CROSS_BUILD}_install_done"
|
||||||
XBPS_PRE_INSTALL_DONE="$wrksrc/.xbps_${sourcepkg}_${XBPS_CROSS_BUILD}_pre_install_done"
|
XBPS_PRE_INSTALL_DONE="$wrksrc/.xbps_${sourcepkg}_${XBPS_CROSS_BUILD}_pre_install_done"
|
||||||
XBPS_POST_INSTALL_DONE="$wrksrc/.xbps_${sourcepkg}_${XBPS_CROSS_BUILD}_post_install_done"
|
XBPS_POST_INSTALL_DONE="$wrksrc/.xbps_${sourcepkg}_${XBPS_CROSS_BUILD}_post_install_done"
|
||||||
|
|
||||||
|
cd $wrksrc || msg_error "$pkgver: cannot access to wrksrc [$wrksrc]\n"
|
||||||
|
if [ -n "$build_wrksrc" ]; then
|
||||||
|
cd $build_wrksrc || msg_error "$pkgver: cannot access to build_wrksrc [$build_wrksrc]\n"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -f $XBPS_INSTALL_DONE ]; then
|
if [ ! -f $XBPS_INSTALL_DONE ]; then
|
||||||
mkdir -p $XBPS_DESTDIR/$XBPS_CROSS_TRIPLET/$pkgname-$version
|
mkdir -p $XBPS_DESTDIR/$XBPS_CROSS_TRIPLET/$pkgname-$version
|
||||||
|
|
||||||
cd $wrksrc || msg_error "$pkgver: cannot access to wrksrc [$wrksrc]\n"
|
|
||||||
if [ -n "$build_wrksrc" ]; then
|
|
||||||
cd $build_wrksrc || msg_error "$pkgver: cannot access to build_wrksrc [$build_wrksrc]\n"
|
|
||||||
fi
|
|
||||||
|
|
||||||
run_pkg_hooks pre-install
|
run_pkg_hooks pre-install
|
||||||
|
|
||||||
# Run pre_install()
|
# Run pre_install()
|
||||||
|
|
Loading…
Reference in a new issue