From 3e07ede3e7501bf5dc8f2c8277635e6f9e42beab Mon Sep 17 00:00:00 2001 From: Alexander Zhirov Date: Sun, 24 Mar 2024 22:13:14 +0300 Subject: [PATCH] new xorg-font-ubuntumono-nerd port --- ports/x/xorg-font-ubuntumono-nerd/Pkgfile | 14 ++++++++++++++ ports/x/xorg-font-ubuntumono-nerd/post-install | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 ports/x/xorg-font-ubuntumono-nerd/Pkgfile create mode 100644 ports/x/xorg-font-ubuntumono-nerd/post-install diff --git a/ports/x/xorg-font-ubuntumono-nerd/Pkgfile b/ports/x/xorg-font-ubuntumono-nerd/Pkgfile new file mode 100644 index 0000000..937b994 --- /dev/null +++ b/ports/x/xorg-font-ubuntumono-nerd/Pkgfile @@ -0,0 +1,14 @@ +# Description: The free Ubuntu Mono Nerd font family. +# URL: https://www.nerdfonts.com/ +# Maintainer: Alexander Zhirov +# Depends on: xorg-mkfontdir, xorg-mkfontscale, xorg-bdftopcf, xorg-font-util + +name=UbuntuMono +version=3.1.1 +release=1 +source=(https://github.com/ryanoasis/nerd-fonts/releases/download/v$version/$name.tar.xz) + +build() { + mkdir -p $PKG/usr/share/fonts/X11/TTF + mv UbuntuMonoNerdFont*.ttf $PKG/usr/share/fonts/X11/TTF/. +} diff --git a/ports/x/xorg-font-ubuntumono-nerd/post-install b/ports/x/xorg-font-ubuntumono-nerd/post-install new file mode 100644 index 0000000..130897a --- /dev/null +++ b/ports/x/xorg-font-ubuntumono-nerd/post-install @@ -0,0 +1,4 @@ +#!/bin/sh + +mkfontdir /usr/share/fonts/X11/TTF +mkfontscale /usr/share/fonts/X11/TTF