void-packages/srcpkgs/font-hack-ttf/template

26 lines
827 B
Bash

# Template file for 'font-hack-ttf'
pkgname=font-hack-ttf
version=3.002
revision=1
wrksrc=Hack-${version}
noarch="yes"
short_desc="A typeface designed for source code"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="MIT"
depends="font-util xbps-triggers"
hostmakedepends="unzip"
font_dirs="/usr/share/fonts/TTF"
homepage="http://sourcefoundry.org/hack/"
distfiles="https://github.com/chrissimpkins/Hack/archive/v${version}.tar.gz"
checksum=040d1428889ac1c65845f1dd6f8d62a027ad7f971e6b0ec4973456a377e9832d
do_install() {
vmkdir usr/share/fonts/TTF
vinstall build/ttf/Hack-Bold.ttf 644 usr/share/fonts/TTF
vinstall build/ttf/Hack-BoldItalic.ttf 644 usr/share/fonts/TTF
vinstall build/ttf/Hack-Italic.ttf 644 usr/share/fonts/TTF
vinstall build/ttf/Hack-Regular.ttf 644 usr/share/fonts/TTF
vlicense LICENSE.md
}