makedeb


nerd-fonts-inconsolata 2.3.3-1


Patched font Inconsolata from the nerd-fonts library

Click here to go back to the commit logs for nerd-fonts-inconsolata.

Commit:


Hash: 5519c6dff94225264ab79f59c6904a58b0a6cb3a

Message: minor update

Diff


diff --git a/.SRCINFO b/.SRCINFO
index c7f302a..9e77a2a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,6 +5,7 @@ pkgbase = nerd-fonts-inconsolata
 	pkgver = 2.1.0
 	pkgrel = 1
 	url = https://github.com/ryanoasis/nerd-fonts
+	install = nerd-fonts-inconsolata.install
 	arch = any
 	groups = nerd-fonts
 	license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index d66d98f..f92f38c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,6 +10,7 @@ depends=('fontconfig')
 provides=('nerd-fonts-inconsolata')
 conflicts=('nerd-fonts-inconsolata')
 # replaces=('nerd-fonts-inconsolata')
+install="${pkgname}.install"
 groups=("nerd-fonts")
 source=("https://github.com/ryanoasis/nerd-fonts/releases/download/v$pkgver/Inconsolata.zip")
 sha1sums=('a788a0d79517d6805a1db31b4e7a52834f44c1bc')
diff --git a/nerd-fonts-inconsolata.install b/nerd-fonts-inconsolata.install
new file mode 100644
index 0000000..94f32d5
--- /dev/null
+++ b/nerd-fonts-inconsolata.install
@@ -0,0 +1,15 @@
+post_install() {
+	echo -n "Updating font cache... "
+	fc-cache -s
+	mkfontscale /usr/share/fonts/TTF
+	mkfontdir /usr/share/fonts/TTF
+	echo "done"
+}
+
+post_upgrade() {
+	post_install $1
+}
+
+post_remove() {
+	post_install $1
+}