makedeb


nerd-fonts-fira-code-bin 3.2.1-1


Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for nerd-fonts-fira-code-bin.

# Maintainer: Jonathan Apodaca <jrapodaca@gmail.com>
# vim: set sw=2 expandtab:
pkgname=nerd-fonts-fira-code-bin
repology_pkgname=fonts:nerd-fonts
pkgver=3.2.1
pkgrel=1
pkgdesc='Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more'
arch=(amd64 i386)
depends=()
provides=(nerd-fonts-fira-code)
conflicts=(nerd-fonts-fira-code)
license=('Unknown')
url='https://nerdfonts.com/'
extensions=('zipman')

postinst='fc-cache.sh'
prerm='fc-cache.sh'

source=("nerd-fonts-fira-code-v$pkgver.tar.xz::https://github.com/ryanoasis/nerd-fonts/releases/download/v$pkgver/FiraCode.tar.xz"
        "fc-cache.sh")
sha256sums=('def4b29f7aa0620a7fa12edb28197a2697680b5e21636fa3dcc602e08ae13bc4'
            '93563bff91dc9055ce44d48148304ae364876ccdfb92b8663df30a4d59f1dff7')

package() {
  cd "$srcdir"

  install -d "$pkgdir/usr/share/fonts/TTF"
  find . -maxdepth 1 -type f -name '*.ttf' -exec install -m644 \{\} "$pkgdir/usr/share/fonts/TTF" \;

  install -d "$pkgdir/usr/share/fonts/OTF"
  find . -maxdepth 1 -type f -name '*.otf' -exec install -m644 \{\} "$pkgdir/usr/share/fonts/OTF" \;

  install -d -m644 "$pkgdir/usr/share/licenses/$pkgname/"
  find . -maxdepth 1 -type f \( -iname 'license' -o -iname 'license.*' \) -exec install -m644 \{\} "$pkgdir/usr/share/licenses/$pkgname/" \;
}