summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/opkbuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/opkbuild b/src/opkbuild
index 5167563..6cae035 100644
--- a/src/opkbuild
+++ b/src/opkbuild
@@ -128,12 +128,13 @@ version=$(oh_get_field Version)
# Set environment variables for the build configuration.
export OH_PLATFORM="${platform}"
export OH_ARCH="${arch}"
-echo "${OH_ARCH}" | \
- IFS=- read OH_ARCH_CPU OH_ARCH_VENDOR OH_ARCH_KERNEL OH_ARCH_LIBS
+IFS=- read OH_ARCH_CPU OH_ARCH_VENDOR OH_ARCH_KERNEL OH_ARCH_LIBS <<EOF
+${OH_ARCH}
+EOF
export OH_ARCH_CPU OH_ARCH_VENDOR OH_ARCH_KERNEL OH_ARCH_LIBS
export OH_SRCPKG="${srcpkg}"
-export OH_PKGVER="${version%'-'*}"
-export OH_PKGREV="${version#*'-'}"
+export OH_PKGVER=${version%'-'*}
+export OH_PKGREV=${version#*'-'}
# Check build dependencies.
oh-checkbuilddeps || error "${srcpkg}-src"