summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorliushaofeng2020-09-07 15:00:18 +0800
committerliushaofeng2020-09-07 15:00:18 +0800
commita0622126827804cf270c7a22cc0eb8286cc1ee13 (patch)
tree4043e17822f7b24b29b38c8c9d07c4271e715236
parentdbd030d97044748cfd4ebf578ccce1281c28e475 (diff)
downloadaur-a0622126827804cf270c7a22cc0eb8286cc1ee13.tar.gz
use pkgver, and update pkgdesc
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4574d1ed16f..c2cb01d6e69 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = rime-middle-chinese-git
- pkgdesc = 中古漢語(切韻音系)全拼及三拼
- pkgver = 0.1
+ pkgdesc = 中古漢語拼音輸入方案(切韻音系)
+ pkgver = r6.542245e
pkgrel = 1
url = https://github.com/biopolyhedron/rime-middle-chinese
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index efad252dcac..3a798b1cc8e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: ZjeuhPiung <sophgn@outlook.com>
pkgname=rime-middle-chinese-git
-pkgver=0.1
+pkgver=r6.542245e
pkgrel=1
-pkgdesc="中古漢語(切韻音系)全拼及三拼"
+pkgdesc="中古漢語拼音輸入方案(切韻音系)"
arch=('x86_64')
url='https://github.com/biopolyhedron/rime-middle-chinese'
source=("$pkgname::git+$url")
@@ -11,6 +11,11 @@ depends=('rime-luna-pinyin')
makedepends=('librime' 'rime-prelude' 'rime-essay')
sha512sums=('SKIP')
+pkgver() {
+ cd "$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
prepare() {
cd $pkgname
for _f in $(pacman -Qql rime-prelude rime-essay rime-luna-pinyin | grep -v "/$"); do ln -sf $_f; done