diff --git a/srcpkgs/font-3270/template b/srcpkgs/font-3270/template new file mode 100644 index 00000000000..487eaf4d6c6 --- /dev/null +++ b/srcpkgs/font-3270/template @@ -0,0 +1,25 @@ +# Template file for 'font-3270' +pkgname=font-3270 +version=1.2.21 +revision=1 +wrksrc=3270font-${version} +font_dirs="/usr/share/fonts/TTF" +build_style=gnu-makefile +hostmakedepends="font-util xbps-triggers fontforge" +short_desc="A 3270 font in a modern format" +maintainer="Diogo Leal " +license="BSD-3" +homepage="https://github.com/rbanffy/3270font" +distfiles="https://github.com/rbanffy/3270font/archive/v${version}.tar.gz" +checksum=1f5e07a3b8ea5663f2d5c61a4518cdffcd14b864d0e27c98528e5abc89c78e7b +noarch="yes" + +do_build() { + make font +} + +do_install() { + vmkdir usr/share/fonts/TTF + vcopy build/*.ttf usr/share/fonts/TTF + vlicense LICENSE.txt +}