Suggested patch for anyone suffering from GitHub download aborts:
diff --git a/PKGBUILD b/PKGBUILD
index 8f26a66..240497a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,13 +15,13 @@ depends=('fontconfig' 'xorg-font-utils')
conflicts=('nerd-fonts-git' 'nerd-fonts-complete-mono-glyphs')
source=(
'fix-installer-font-dir.patch'
- "${_gitname}-${pkgver}.tar.gz::https://github.com/ryanoasis/nerd-fonts/archive/v${pkgver}.tar.gz"
)
-sha256sums=('ccf93b108044a87bfb29c3f836d2ce4d5bdb1829702e532a69ccb4ab4aecaceb'
- 'a084ca91a174b547bab4523507824c76aa91ebcf38f9256a4ffd181813f87bd8')
+sha256sums=('ccf93b108044a87bfb29c3f836d2ce4d5bdb1829702e532a69ccb4ab4aecaceb')
prepare () {
- cd "$srcdir/$_gitname-$pkgver"
+ cd "$srcdir"
+ git clone --branch v${pkgver} --depth 1 https://github.com/ryanoasis/nerd-fonts.git "$_gitname-$pkgver"
+ cd "$_gitname-$pkgver"
patch -Np1 -i "$srcdir"/fix-installer-font-dir.patch
}
Pinned Comments
francoism90 commented on 2020-03-20 11:29
I have updated this PKG to v2.1.0: you need to uninstall any previous version(s) as I've done some breaking changes to the PKG. I had to rewrite the PKGBUILD because it was using a different repo/tarball instead of the official one.
Please note the tarball is around ~2GB (2298M), you may have to download this first using
wget https://github.com/ryanoasis/nerd-fonts/archive/v2.1.0.tar.gz
as GitHub doesn't offer resume download support.See @sylphio patch https://aur.archlinux.org/packages/nerd-fonts-complete/#comment-767042 as possible workaround when dealing with download problems.
This is how one may build this package:
If something is missing and/or broken, please let me know.