diff options
author | Andy Kluger | 2018-10-10 22:57:45 -0400 |
---|---|---|
committer | Andy Kluger | 2018-10-10 22:57:45 -0400 |
commit | d260e2109d5618d384cbc8bcc0483bcd5923cced (patch) | |
tree | 645fc0a3ec12239e5e30d5da97f73481e524f667 /PKGBUILD | |
parent | ecd6490353c609819cec710e469d1725e69fcdd8 (diff) | |
download | aur-d260e2109d5618d384cbc8bcc0483bcd5923cced.tar.gz |
revert hacks to ensure a shallow checkout, and revert versioning scheme
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -1,7 +1,7 @@ # Maintainer: Andy Kluger <AndyKluger@gmail.com> # Contributor: Markus Weimar <mail@markusweimar.de> pkgname=ttf-iosevka-term-custom-git -pkgver=2018.10.05T06.46.02Z.68b55c13 +pkgver=r1145.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,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/ |