Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
Signed-off-by: leleliu008 <leleliu008@gmail.com>
  • Loading branch information
leleliu008 committed Apr 16, 2024
1 parent 073cd38 commit c0e82a8
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions ndk-pkg
Original file line number Diff line number Diff line change
Expand Up @@ -6891,12 +6891,21 @@ $PACKAGE_DOPATCH

#########################################################################################

if [ "$PWD" != "$PACKAGE_BSCRIPT_DIR" ] ; then
run cd "$PACKAGE_BSCRIPT_DIR"
fi

#########################################################################################

# https://github.com/golang/go/issues/65568
if [ -f go.mod ] ; then
sed_in_place 's|^go 1.22$|go 1.22.0|' go.mod
fi

#########################################################################################

case $PACKAGE_BSYSTEM_MASTER in
autogen)
if [ "$PWD" != "$PACKAGE_BSCRIPT_DIR" ] ; then
run cd "$PACKAGE_BSCRIPT_DIR"
fi

if [ -f configure ] ; then
CONFIGURE_FILE_LAST_MODIFIED_TIMESTAMP="$(stat --format=%Y configure)"

Expand All @@ -6910,10 +6919,6 @@ $PACKAGE_DOPATCH
fi
;;
autotools)
if [ "$PWD" != "$PACKAGE_BSCRIPT_DIR" ] ; then
run cd "$PACKAGE_BSCRIPT_DIR"
fi

if [ -f configure ] ; then
CONFIGURE_FILE_LAST_MODIFIED_TIMESTAMP="$(stat --format=%Y configure)"

Expand All @@ -6935,10 +6940,6 @@ $PACKAGE_DOPATCH
if [ -z "$PACKAGE_PREPARE" ] ; then
note "prepare mapping was not found in formula, skipped."
else
if [ "$PWD" != "$PACKAGE_BSCRIPT_DIR" ] ; then
run cd "$PACKAGE_BSCRIPT_DIR"
fi

eval "
prepare() {
$PACKAGE_PREPARE
Expand Down Expand Up @@ -6992,7 +6993,7 @@ $PACKAGE_DOTWEAK
if [ -d "$PACKAGE_INSTALL_DIR/lib" ] ; then
# https://www.linuxfromscratch.org/blfs/view/stable-systemd/introduction/la-files.html
# remove Libtool Archive (.la) files
find "$PACKAGE_INSTALL_DIR/lib" -maxdepth 1 -mindepth 1 \( -type f -or -type l \) -name 'lib*.la' -exec rm '{}' \;
find "$PACKAGE_INSTALL_DIR/lib" -maxdepth 1 -mindepth 1 \( -type f -or -type l \) -name '*.la' -exec rm '{}' \;
fi

#########################################################################################
Expand Down Expand Up @@ -8723,7 +8724,7 @@ NDKPKG_PATH="$(cd "$(dirname "$0")" && pwd)/$(basename "$0")"

NDKPKG_ARGS="$*"

NDKPKG_VERSION=0.8.12
NDKPKG_VERSION=0.8.13

NDKPKG_ZSH_COMPLETION_SCRIPT_URL='https://raw.githubusercontent.com/leleliu008/ndk-pkg/master/ndk-pkg-zsh-completion'
NDKPKG_OFFICIAL_FORMULA_REPO_URL='https://github.com/leleliu008/ndk-pkg-formula-repository-official-core.git'
Expand Down

0 comments on commit c0e82a8

Please sign in to comment.