summaryrefslogtreecommitdiffstats
path: root/src/opkbuild
diff options
context:
space:
mode:
Diffstat (limited to 'src/opkbuild')
-rw-r--r--src/opkbuild3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/opkbuild b/src/opkbuild
index 542fe4e..902e331 100644
--- a/src/opkbuild
+++ b/src/opkbuild
@@ -145,8 +145,7 @@ ${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}
# Check build dependencies.
oh-checkbuilddeps || error "${srcpkg}-src"