diff --git a/srcpkgs/font-hack-otf/template b/srcpkgs/font-hack-otf/template new file mode 100644 index 0000000000..a78e9a2567 --- /dev/null +++ b/srcpkgs/font-hack-otf/template @@ -0,0 +1,24 @@ +# Template file for 'font-hack-otf' +pkgname=font-hack-otf +version=2.013 +revision=1 +wrksrc=Hack-${version} +noarch="yes" +short_desc="A typeface designed for source code - OTF format" +maintainer="Diogo Leal " +license="Hack Open Font License" +depends="font-util xbps-triggers" +hostmakedepends="unzip" +font_dirs="/usr/share/fonts/OTF" +homepage="http://sourcefoundry.org/hack/" +distfiles="https://github.com/chrissimpkins/Hack/archive/v${version}.tar.gz" +checksum=9fe8cf97610c4c8493f2d4732b037dfa4a9a155e0f0e99cb561c16aecff24dff + +do_install() { + vmkdir usr/share/fonts/OTF + vinstall build/otf/Hack-Bold.otf 644 usr/share/fonts/OTF + vinstall build/otf/Hack-BoldItalic.otf 644 usr/share/fonts/OTF + vinstall build/otf/Hack-Italic.otf 644 usr/share/fonts/OTF + vinstall build/otf/Hack-Regular.otf 644 usr/share/fonts/OTF + vlicense LICENSE.md +}