diff options
author | Andy Kluger | 2021-04-30 01:12:06 -0400 |
---|---|---|
committer | Andy Kluger | 2021-04-30 01:12:06 -0400 |
commit | 72d1d2a13c09e0afac713ed49216e12368787560 (patch) | |
tree | ee6ff68c7313d5df2c97a5bbb70e07303234c886 | |
parent | ea04239f10b689092cf63b8ffdde299c387aae09 (diff) | |
download | aur-72d1d2a13c09e0afac713ed49216e12368787560.tar.gz |
new version scheme, shallow checkouts
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 13 insertions, 14 deletions
@@ -1,6 +1,6 @@ pkgbase = ttf-iosevka-git pkgdesc = A slender monospace sans-serif and slab-serif typeface inspired by Pragmata Pro, M+ and PF DIN Mono. - pkgver = r2089.115f5b19 + pkgver = 1619488675 pkgrel = 1 url = https://be5invis.github.io/Iosevka/ arch = any @@ -11,8 +11,6 @@ pkgbase = ttf-iosevka-git makedepends = ttfautohint provides = ttf-iosevka conflicts = ttf-iosevka - source = git+https://github.com/be5invis/Iosevka - sha256sums = SKIP pkgname = ttf-iosevka-git @@ -2,7 +2,7 @@ # Contributor: Markus Weimar <mail@markusweimar.de> _pkgname=ttf-iosevka pkgname=${_pkgname}-git -pkgver=r2089.115f5b19 +pkgver=1619488675 pkgrel=1 pkgdesc='A slender monospace sans-serif and slab-serif typeface inspired by Pragmata Pro, M+ and PF DIN Mono.' arch=('any') @@ -12,26 +12,27 @@ makedepends=('git' 'nodejs>=12.16.0' 'npm' 'ttfautohint') depends=() conflicts=(${_pkgname}) provides=(${_pkgname}) -source=( - 'git+https://github.com/be5invis/Iosevka' -) -sha256sums=( - 'SKIP' -) +source=() +sha256sums=() -pkgver() { +prepare () { + rm -rf Iosevka + git clone --depth 1 --branch master 'https://github.com/be5invis/Iosevka' +} + +pkgver () { cd Iosevka - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + git log -1 --format=%ct } -build() { +build () { cd Iosevka npm install npm update npm run build -- ttf::${_pkgname#*-} } -package() { +package () { install -d "${pkgdir}/usr/share/fonts/TTF" install -m644 Iosevka/dist/*/ttf/*.ttf "${pkgdir}/usr/share/fonts/TTF/" install -d "${pkgdir}/usr/share/licenses/${pkgname}" |