diff --git a/ports/x/xorg-font-ubuntu-nerd/Pkgfile b/ports/x/xorg-font-ubuntu-nerd/Pkgfile new file mode 100644 index 0000000..85ad570 --- /dev/null +++ b/ports/x/xorg-font-ubuntu-nerd/Pkgfile @@ -0,0 +1,14 @@ +# Description: The free Ubuntu Nerd font family. +# URL: https://www.nerdfonts.com/ +# Maintainer: Alexander Zhirov +# Depends on: xorg-mkfontdir, xorg-mkfontscale, xorg-bdftopcf, xorg-font-util + +name=Ubuntu +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 UbuntuNerdFont*.ttf $PKG/usr/share/fonts/X11/TTF/. +} diff --git a/ports/x/xorg-font-ubuntu-nerd/post-install b/ports/x/xorg-font-ubuntu-nerd/post-install new file mode 100644 index 0000000..130897a --- /dev/null +++ b/ports/x/xorg-font-ubuntu-nerd/post-install @@ -0,0 +1,4 @@ +#!/bin/sh + +mkfontdir /usr/share/fonts/X11/TTF +mkfontscale /usr/share/fonts/X11/TTF