Package Details: nerd-fonts-git r549.c89aeaa7-1

Git Clone URL: https://aur.archlinux.org/nerd-fonts-git.git (read-only, click to copy)
Package Base: nerd-fonts-git
Description: Iconic font aggregator, collection, and patcher: 34 patched fonts (77k+ variations). Includes popular glyph collections such as Font Awesome & fonts such as Hack
Upstream URL: https://github.com/ryanoasis/nerd-fonts
Licenses: MIT
Conflicts: nerd-fonts
Provides: nerd-fonts
Submitter: Foxboron
Maintainer: None
Last Packager: Foxboron
Votes: 11
Popularity: 0.000101
First Submitted: 2015-08-20 19:57
Last Updated: 2017-09-05 23:51

Dependencies (1)

Required by (4)

Sources (1)

Latest Comments

tuxsavvy commented on 2020-07-09 12:55

Here's an updated variant that addresses a couple of issues. This is not to say that I know of the reason(s) why this package is/was flagged out of date:

  • Updated pkgdesc to note that this is coming directly from GitHub, and without the use of install.sh.

  • Updated makedepends and conflicts array to reflect on what other nerd-fonts commonly have.

  • Updated pkgver and package to resemble more closely to the nerd-fonts-complete AUR variant.

--- PKGBUILD.orig       2020-07-09 12:47:38.000000000 +0000
+++ PKGBUILD    2020-07-09 11:50:57.377978305 +0000
@@ -1,28 +1,79 @@

 # Maintainer: Morten Linderud <morten@linderud.pw> 
 pkgname=nerd-fonts-git
-pkgver=r549.c89aeaa7
-pkgrel=1
-pkgdesc="Iconic font aggregator, collection, and patcher: 34 patched fonts (77k+ variations). Includes popular glyph collections such as Font Awesome & fonts such as Hack"
+_gitname=nerd-fonts
+pkgver=r993.5f748cdb
+pkgrel=2
+pkgdesc="Iconic font aggregator, collection, and patcher: 34 patched fonts (77k+ variations). Includes popular glyph collections such as Font Awesome & fonts such as Hack. (GitHub variant)"
 arch=('any')
 url='https://github.com/ryanoasis/nerd-fonts'
 license=('MIT')
-makedepends=('git')
-conflicts=('nerd-fonts')
+makedepends=('git' 'fontconfig' 'xorg-mkfontscale' 'xorg-bdftopcf' 'xorg-font-util')
+conflicts=(
+    'nerd-fonts-complete'
+    'nerd-fonts-complete-mono-glyphs'
+    'nerd-fonts-anonymous-pro'
+    'nerd-fonts-arimo'
+    'nerd-fonts-bitstream-vera-mono'
+    'nerd-fonts-cascadia-code'
+    'nerd-fonts-dejavu-complete'
+    'nerd-fonts-droid-sans-mono'
+    'nerd-fonts-fantasque-sans-mono'
+    'nerd-fonts-fira-code'
+    'nerd-fonts-fira-mono'
+    'nerd-fonts-go-mono'
+    'nerd-fonts-hack'
+    'nerd-fonts-hermit'
+    'nerd-fonts-ibm-plex-mono'
+    'nerd-fonts-inconsolata'
+    'nerd-fonts-inconsolata-go'
+    'nerd-fonts-iosevka'
+    'nerd-fonts-liberation-mono'
+    'nerd-fonts-noto'
+    'nerd-fonts-noto-sans-mono'
+    'nerd-fonts-noto-sans-regular-complete'
+    'nerd-fonts-meslo'
+    'nerd-fonts-monoid'
+    'nerd-fonts-mononoki'
+    'nerd-fonts-mplus'
+    'nerd-fonts-profont'
+    'nerd-fonts-roboto-mono'
+    'nerd-fonts-source-code-pro'
+    'nerd-fonts-terminus'
+    'nerd-fonts-ubuntu-mono'
+    'nerd-fonts-victor-mono'
+    'otf-nerd-fonts-fira-code'
+    'ttf-nerd-fonts-hack-complete-git')
 provides=('nerd-fonts')
 source=('git+https://github.com/ryanoasis/nerd-fonts.git')
-md5sums=('SKIP')
+sha256sums=('SKIP')

 pkgver() {
-  cd nerd-fonts
+  cd "$_gitname"
   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
 }

 package() {
-  cd "$srcdir/nerd-fonts/patched-fonts"
-  find . -iname "*.ttf" -execdir install -Dm644 {} "$pkgdir/usr/share/fonts/TTF/{}" \;
-  find . -iname "*.otf" -execdir install -Dm644 {} "$pkgdir/usr/share/fonts/OTF/{}" \;
-  find . -iname "*.pcf.gz" -execdir install -Dm644 {} "$pkgdir/usr/share/fonts/misc/{}" \;
-  find . -iname "*.psf.gz" -execdir install -Dm644 {} "$pkgdir/usr/share/kbd/consolefonts/{}" \;
-  install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  # Prepare destination directories
+  libdir="${pkgdir}/usr/lib/${pkgname}"
+  otfdir="${pkgdir}/usr/share/fonts/${pkgname}/OTF"
+  ttfdir="${pkgdir}/usr/share/fonts/${pkgname}/TTF"
+
+  install -dm755 "${libdir}"
+  install -dm755 "${otfdir}"
+  install -dm755 "${ttfdir}"
+
+  # Install fonts
+  find "${srcdir}/${_gitname}/patched-fonts" -iname "*.ttf" -execdir install -m644 {} "${ttfdir}/{}" \;
+  find "${srcdir}/${_gitname}/patched-fonts" -iname "*.otf" -execdir install -m644 {} "${otfdir}/{}" \;
+#  find "${srcdir}/${_gitname}/patched-fonts" -iname "*.pcf.gz" -execdir install -m644 {} "$pkgdir/usr/share/fonts/misc/{}" \;
+#  find "${srcdir}/${_gitname}/patched-fonts" -iname "*.psf.gz" -execdir install -m644 {} "$pkgdir/usr/share/kbd/consolefonts/{}" \;
+
+  # Install scripts
+  find "${srcdir}/${_gitname}/bin/scripts/lib" -iname "*.sh" -execdir install -m644 {} "${libdir}/{}" \;
+
+  # Install license
+  install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 "${srcdir}/${_gitname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }

halfhorn commented on 2020-02-17 00:53

Why is this flagged out of date?

chabad360 commented on 2019-08-09 00:53

Can you update this?

Desdic commented on 2017-05-03 18:08

Anyone else gets this when trying to install

find: The current directory is included in the PATH environment variable, which is insecure in combination with the -execdir action of find. Please remove the current directory from your $PATH (that is, remove ".", doubled colons, or leading or trailing colons)
==> ERROR: A failure occurred in package().
Aborting...
:: failed to build nerd-fonts-git package(s)

I don't have . in my path

Rhinoceros commented on 2016-02-02 03:33

This failed for me with
==> ERROR: url should not be an array
I removed the () from around the url field, and it seems to work (I aborted before completion, since it was too large).