summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ad4a149a5cb5..3a3291b5cb75 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,9 +5,10 @@
pkgbase=openfoam
pkgname=openfoam-org
-_subver=20230119
-_pkgver=10
pkgver=10.20230119
+_pkgver="${pkgver%.*}"
+_subver="${pkgver#*.}"
+[[ "$pkgver" = "$_subver" ]] && _subver="version-$pkgver"
pkgrel=1
pkgdesc="The open source CFD toolbox (www.openfoam.org)"
_distpkgbase=OpenFOAM