summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Kluger2018-10-10 22:58:14 -0400
committerAndy Kluger2018-10-10 22:58:14 -0400
commita9ef35c14a99bf3de930c4ae6b1a63369a13f80d (patch)
tree6f2ad538478a18c3606ab6acefc3c7499ad4dc7f
parent9c1f058a60f0aaeafc0f046355a67c41c202a008 (diff)
downloadaur-a9ef35c14a99bf3de930c4ae6b1a63369a13f80d.tar.gz
revert hacks to ensure a shallow checkout, and revert versioning scheme
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD19
2 files changed, 14 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0a59d9b8cac..9b8e2405cd7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = ttf-iosevka-termlig-custom-git
pkgdesc = A slender monospace sans-serif and slab-serif typeface inspired by Pragmata Pro, M+ and PF DIN Mono.
- pkgver = 2018.10.05T06.46.02Z.68b55c13
+ pkgver = r1.68b55c1
pkgrel = 1
url = https://be5invis.github.io/Iosevka/
arch = any
@@ -12,7 +12,9 @@ pkgbase = ttf-iosevka-termlig-custom-git
makedepends = otfcc
depends = fontconfig
depends = xorg-font-utils
+ source = git+https://github.com/be5invis/Iosevka
source = private-build-plans.toml
+ md5sums = SKIP
md5sums = 7d6b77730ff5400d69e004cc1921ea19
pkgname = ttf-iosevka-termlig-custom-git
diff --git a/PKGBUILD b/PKGBUILD
index b07ad6dd244..35ff005e576 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Andy Kluger <AndyKluger@gmail.com>
# Contributor: Markus Weimar <mail@markusweimar.de>
pkgname=ttf-iosevka-termlig-custom-git
-pkgver=2018.10.05T06.46.02Z.68b55c13
+pkgver=r1.68b55c1
pkgrel=1
pkgdesc='A slender monospace sans-serif and slab-serif typeface inspired by Pragmata Pro, M+ and PF DIN Mono.'
arch=('any')
@@ -11,18 +11,21 @@ makedepends=('git' 'nodejs' 'npm' 'ttfautohint' 'otfcc')
depends=('fontconfig' 'xorg-font-utils')
conflicts=()
provides=()
-source=("private-build-plans.toml")
-md5sums=('7d6b77730ff5400d69e004cc1921ea19')
+source=(
+ "git+https://github.com/be5invis/Iosevka"
+ "private-build-plans.toml"
+)
+md5sums=(
+ 'SKIP'
+ '7d6b77730ff5400d69e004cc1921ea19'
+)
pkgver() {
- commits=$(curl --silent https://api.github.com/repos/be5invis/Iosevka/commits)
- tstamp=$(printf "$commits" | grep '\s*"date":' | head -1 | cut -d '"' -f 4 | sed -E 's/-|:/./g')
- short_sha=$(printf "$commits" | grep '\s*"sha":' | head -1 | cut -d '"' -f 4 | cut -c -8)
- printf "$tstamp.$short_sha"
+ cd Iosevka
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
- git clone --depth=1 https://github.com/be5invis/Iosevka
buildplans="$HOME/.config/iosevka/private-build-plans.toml"
[[ -f "$buildplans" ]] && cp "$buildplans" ../ || echo "$buildplans not found, using pkgbuild creator's"
cp ../private-build-plans.toml Iosevka/