Skip to content

Commit fac9848

Browse files
committed
In Arch version should be the last tag, not debian/changelog
1 parent efd23aa commit fac9848

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

PKGBUILD

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,16 @@ build() {
3131

3232
rm -rf build
3333

34+
# Use latest git tag for version instead of debian/changelog
35+
local _ver
36+
_ver=$(git -C "${startdir}" describe --tags --abbrev=0 2>/dev/null || echo "${pkgver}")
37+
3438
cmake -G Ninja \
3539
-B build \
3640
-DCMAKE_BUILD_TYPE=Release \
3741
-DCMAKE_INSTALL_PREFIX=/usr \
38-
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
42+
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
43+
-DPROJECT_VERSION_OVERRIDE="${_ver}"
3944

4045
cmake --build build --parallel
4146
}

0 commit comments

Comments
 (0)