build-package.sh: fix bug in the case where package name contains (but not ends with) -dev
As for icu-devtools
This commit is contained in:
parent
ede80c5d9d
commit
f3f479faf6
@ -435,8 +435,8 @@ termux_step_handle_buildarch() {
|
|||||||
# Function to get TERMUX_PKG_VERSION from build.sh
|
# Function to get TERMUX_PKG_VERSION from build.sh
|
||||||
termux_extract_dep_info() {
|
termux_extract_dep_info() {
|
||||||
package=$1
|
package=$1
|
||||||
if [ ! -d packages/$package ] && [ packages/${package} == packages/${package/-dev/} ]; then
|
if [ ! -d packages/$package ] && [ -f packages/*/${package}.subpackage.sh ]; then
|
||||||
# We are probably dealing with a subpackage
|
# We are dealing with a subpackage
|
||||||
TERMUX_ARCH=$(
|
TERMUX_ARCH=$(
|
||||||
# set TERMUX_SUBPKG_PLATFORM_INDEPENDENT to mother package's value and override if needed
|
# set TERMUX_SUBPKG_PLATFORM_INDEPENDENT to mother package's value and override if needed
|
||||||
TERMUX_PKG_PLATFORM_INDEPENDENT=""
|
TERMUX_PKG_PLATFORM_INDEPENDENT=""
|
||||||
@ -451,7 +451,7 @@ termux_extract_dep_info() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
package=$(basename $(dirname $(find packages/ -name "$package.subpackage.sh")))
|
package=$(basename $(dirname $(find packages/ -name "$package.subpackage.sh")))
|
||||||
elif [ ! packages/${package} == packages/${package/-dev/} ]; then
|
elif [ "${package/-dev/}-dev" == "${package}" ]; then
|
||||||
# dev package
|
# dev package
|
||||||
package=${package/-dev/}
|
package=${package/-dev/}
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user