summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 7 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1eb27d9de73..bc75709bacf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = ttf-comic-mono-git
pkgdesc = like the famous font but monospace and with adjusted metric
- pkgver = 1
+ pkgver = r21.03b5ad8
pkgrel = 1
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 83195b1e82f..758c00d88da 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Dorian Bourgeoisat <dorian dot bourgeoisat at icloud dot com>
pkgname=ttf-comic-mono-git
-pkgver=1
+pkgver=r21.03b5ad8
pkgrel=1
pkgdesc="like the famous font but monospace and with adjusted metric"
license=('MIT')
@@ -11,6 +11,11 @@ provides=("comic-mono")
source=("git+https://github.com/dtinth/comic-mono-font.git")
md5sums=('SKIP')
+pkgver() {
+ cd "$srcdir/comic-mono-font"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
package() {
cd "$srcdir/comic-mono-font"
install -d "$pkgdir/usr/share/fonts/TTF"