diff --git a/srcpkgs/ttf-opensans/template b/srcpkgs/ttf-opensans/template new file mode 100644 index 00000000000..b42ce1f43d6 --- /dev/null +++ b/srcpkgs/ttf-opensans/template @@ -0,0 +1,19 @@ +# Template file for 'ttf-opensans' +pkgname=ttf-opensans +version=3.000 +revision=1 +_githash=c071e9696751f2d69925d66f3b8c581f2dc041c2 +wrksrc="opensans-${_githash}" +depends="font-util" +short_desc="Clean and modern sans-serif typeface" +maintainer="Hervy Qurrotul Ainur Rozi " +license="Apache-2.0" +homepage="https://fonts.google.com/specimen/Open+Sans" +distfiles="https://github.com/googlefonts/opensans/archive/${_githash}.tar.gz" +checksum=fcbeae8c630a9afe2b6722c86a77788e549c353bea8cf7fbbc2e3f2fdacabcb7 +font_dirs="/usr/share/fonts/TTF" + +do_install() { + vmkdir usr/share/fonts/TTF + find fonts/ttf/ -type f -name '*.ttf' -exec install -Dm644 '{}' ${DESTDIR}/usr/share/fonts/TTF \; +}