Browse Source

Strip version prefix when building Debian package

Frédéric Guillot 2 years ago
parent
commit
2842017b59
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packaging/debian/build.sh

+ 1 - 1
packaging/debian/build.sh

@@ -2,7 +2,7 @@
 
 PKG_ARCH=$(dpkg --print-architecture)
 PKG_DATE=$(date -R)
-PKG_VERSION=$(cd /src && git describe --tags --abbrev=0)
+PKG_VERSION=$(cd /src && git describe --tags --abbrev=0 | sed 's/^v//')
 
 echo "PKG_VERSION=$PKG_VERSION"
 echo "PKG_ARCH=$PKG_ARCH"