summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Kluger2018-10-10 16:51:46 -0400
committerAndy Kluger2018-10-10 16:51:46 -0400
commitecd6490353c609819cec710e469d1725e69fcdd8 (patch)
tree8c89fa9e972056a1e0dba3d0644e214bc42587c0
parent7f1912821c55dcc1387f8575a8ed3182c30acf78 (diff)
downloadaur-ecd6490353c609819cec710e469d1725e69fcdd8.tar.gz
hacks to ensure a shallow checkout (a few mb vs nearly 1gb), use new short open '$' by default, and change versioning scheme to 'date.short-hash'
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD19
-rw-r--r--private-build-plans.toml10
3 files changed, 16 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a4225366d3e..1c8ce35291e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = ttf-iosevka-term-custom-git
pkgdesc = A slender monospace sans-serif and slab-serif typeface inspired by Pragmata Pro, M+ and PF DIN Mono.
- pkgver = r1137.ffc50ab3
+ pkgver = 2018.10.05T06.46.02Z.68b55c13
pkgrel = 1
url = https://be5invis.github.io/Iosevka/
arch = any
@@ -12,8 +12,8 @@ pkgbase = ttf-iosevka-term-custom-git
makedepends = otfcc
depends = fontconfig
depends = xorg-font-utils
- source = git+https://github.com/be5invis/Iosevka
- md5sums = SKIP
+ source = private-build-plans.toml
+ md5sums = 7d6b77730ff5400d69e004cc1921ea19
pkgname = ttf-iosevka-term-custom-git
diff --git a/PKGBUILD b/PKGBUILD
index 15cffad0f35..3249267516c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Andy Kluger <AndyKluger@gmail.com>
# Contributor: Markus Weimar <mail@markusweimar.de>
pkgname=ttf-iosevka-term-custom-git
-pkgver=r1137.ffc50ab3
+pkgver=2018.10.05T06.46.02Z.68b55c13
pkgrel=1
pkgdesc='A slender monospace sans-serif and slab-serif typeface inspired by Pragmata Pro, M+ and PF DIN Mono.'
arch=('any')
@@ -11,21 +11,18 @@ makedepends=('git' 'nodejs' 'npm' 'ttfautohint' 'otfcc')
depends=('fontconfig' 'xorg-font-utils')
conflicts=()
provides=()
-source=(
- "git+https://github.com/be5invis/Iosevka"
- "private-build-plans.toml"
-)
-md5sums=(
- 'SKIP'
- '2f29f9633449e8f381a615e334f67ef9'
-)
+source=("private-build-plans.toml")
+md5sums=('7d6b77730ff5400d69e004cc1921ea19')
pkgver() {
- cd Iosevka
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ 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"
}
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/
diff --git a/private-build-plans.toml b/private-build-plans.toml
index 3e86ee05b26..df3b73ac848 100644
--- a/private-build-plans.toml
+++ b/private-build-plans.toml
@@ -19,8 +19,8 @@ design = [ # Common styles
"cv24", # open double story g
"cv26", # short leg m
"cv27", # tailed l
- "cv38", # open $
"cv46", # flat top 3
+ "cv54", # open short $
# "slab",
@@ -51,8 +51,8 @@ design = [ # Common styles
"cv24", # open double story g
"cv26", # short leg m
"cv27", # tailed l
- "cv38", # open $
"cv46", # flat top 3
+ "cv54", # open short $
"slab",
@@ -83,8 +83,8 @@ design = [ # Common styles
"cv24", # open double story g
"cv26", # short leg m
"cv27", # tailed l
- "cv38", # open $
"cv46", # flat top 3
+ "cv54", # open short $
# "slab",
@@ -115,8 +115,8 @@ design = [ # Common styles
"cv24", # open double story g
"cv26", # short leg m
"cv27", # tailed l
- "cv38", # open $
"cv46", # flat top 3
+ "cv54", # open short $
# "slab",
@@ -147,8 +147,8 @@ design = [ # Common styles
"cv24", # open double story g
"cv26", # short leg m
"cv27", # tailed l
- "cv38", # open $
"cv46", # flat top 3
+ "cv54", # open short $
"slab",