diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/opkbuild.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh index c942eb7..efec272 100644 --- a/src/opkbuild.sh +++ b/src/opkbuild.sh @@ -174,6 +174,8 @@ cd tmp printf 'opkbuild: Reading source package control fields...\n' srcpkg=$(oh_get_field Source) version=$(oh_get_field Version) +export OH_SRCPKG="${srcpkg}" +export OH_PKGVER=${version} # Set environment variables for the build configuration. export OH_HOST_PLATFORM="${platform}" @@ -182,8 +184,6 @@ IFS=- read OH_HOST_ARCH_CPU OH_HOST_ARCH_KERNEL OH_HOST_ARCH_LIBS <<EOF ${OH_HOST_ARCH_DIST} EOF export OH_HOST_ARCH_CPU OH_HOST_ARCH_KERNEL OH_HOST_ARCH_LIBS -export OH_SRCPKG="${srcpkg}" -export OH_PKGVER=${version} # Set build flags. if [ -f "@@DATADIR@@/opkhelper/buildflags/${OH_HOST_ARCH_CPU}" ]; then |