diff options
author | Andy Kluger | 2018-10-10 22:58:14 -0400 |
---|---|---|
committer | Andy Kluger | 2018-10-10 22:58:14 -0400 |
commit | a9ef35c14a99bf3de930c4ae6b1a63369a13f80d (patch) | |
tree | 6f2ad538478a18c3606ab6acefc3c7499ad4dc7f | |
parent | 9c1f058a60f0aaeafc0f046355a67c41c202a008 (diff) | |
download | aur-a9ef35c14a99bf3de930c4ae6b1a63369a13f80d.tar.gz |
revert hacks to ensure a shallow checkout, and revert versioning scheme
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 14 insertions, 9 deletions
@@ -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 @@ -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/ |