summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 8 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2c1f6402b03b..b279621a0ccf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = wms-git
pkgdesc = A tool for changing WPS Office language with online languages supports.
- pkgver = 1.0.0
+ pkgver = 1.0.0.b770e05
pkgrel = 1
url = https://github.com/timxx/wms
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index cac7ba553dff..b74606af9a3d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: Weitian Leung <weitianleung[at]gmail[dot]com>
pkgname=wms-git
-pkgver=1.0.0
+_pkgver=1.0.0
+pkgver=1.0.0.b770e05
pkgrel=1
pkgdesc="A tool for changing WPS Office language with online languages supports."
url="https://github.com/timxx/wms"
@@ -12,6 +13,11 @@ makedepends=('cmake' 'qt5-tools')
source=("$pkgname::git+https://github.com/timxx/wms.git")
sha256sums=('SKIP')
+pkgver() {
+ cd "$srcdir/$pkgname"
+ printf "${_pkgver}.%s" "$(git describe --always | sed 's/-/./g')"
+}
+
prepare() {
mkdir -p "${srcdir}/build"
}