makedeb
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
Click here to go back to the commit logs for nerd-fonts-fira-code-bin.
Hash: 28dee7cbd5e0b3f861f0066824af2a4b80f00ca0
Message: Add postinst and prerm script to update Font cache
diff --git a/.SRCINFO b/.SRCINFO
index bea80b4..16aa8f5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,10 @@
generated-by = makedeb
pkgname = nerd-fonts-fira-code-bin
+postinst = fc-cache.sh
+prerm = fc-cache.sh
pkgbase = nerd-fonts-fira-code-bin
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
-pkgrel = 2
+pkgrel = 3
pkgver = 3.0.1
url = https://nerdfonts.com/
arch = amd64
@@ -11,4 +13,6 @@ conflicts = nerd-fonts-fira-code
license = Unknown
provides = nerd-fonts-fira-code
source = nerd-fonts-fira-code-v3.0.1.tar.xz::https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.1/FiraCode.tar.xz
+source = fc-cache.sh
sha256sums = a9a8510109811bc6f437039b0f1a581dd3455af8f0b857edb15f342d4fecc98e
+sha256sums = 93563bff91dc9055ce44d48148304ae364876ccdfb92b8663df30a4d59f1dff7
diff --git a/PKGBUILD b/PKGBUILD
index f0031cc..2580c13 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
# Maintainer: Jonathan Apodaca <jrapodaca@gmail.com>
# vim: set sw=2 expandtab:
pkgname=nerd-fonts-fira-code-bin
+repology_pkgname=fonts:nerd-fonts
pkgver=3.0.1
-pkgrel=2
+pkgrel=3
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=()
@@ -11,8 +12,13 @@ conflicts=(nerd-fonts-fira-code)
license=('Unknown')
url='https://nerdfonts.com/'
-source=("nerd-fonts-fira-code-v$pkgver.tar.xz::https://github.com/ryanoasis/nerd-fonts/releases/download/v$pkgver/FiraCode.tar.xz")
-sha256sums=('a9a8510109811bc6f437039b0f1a581dd3455af8f0b857edb15f342d4fecc98e')
+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=('a9a8510109811bc6f437039b0f1a581dd3455af8f0b857edb15f342d4fecc98e'
+ '93563bff91dc9055ce44d48148304ae364876ccdfb92b8663df30a4d59f1dff7')
package() {
cd "$srcdir"
diff --git a/fc-cache.sh b/fc-cache.sh
new file mode 100755
index 0000000..c9d767d
--- /dev/null
+++ b/fc-cache.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+fc-cache -f -v 2>&1 >/dev/null