๐Ÿ“ฆ amake / macports-fonts

๐Ÿ“„ Portfile ยท 39 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0

categories          fonts
github.setup        githubnext monaspace 1.301 v
revision            0
github.tarball_from releases

description         An innovative superfamily of fonts for code
long_description    ${description}
homepage            https://monaspace.githubnext.com/

platforms           {darwin any}
supported_archs     noarch
maintainers         {amake @amake} openmaintainer
license             OFL

distname            ${name}-static-v${version}
use_configure       no
use_zip             yes

worksrcdir          .

checksums           rmd160  c1aca4275e8ca00f0dcc1eff7c0ec9f9b845470a \
                    sha256  e201697c8ef3cfd4559fbfb4b5f60bf7425113729bca28e33b0a9112db1ca579 \
                    size    35852498

build {}

destroot.violate_mtree yes

destroot {
    set target ${destroot}/Library/Fonts/
    xinstall -m 0755 -d ${target}
    copy {*}[glob "${worksrcpath}/Static Fonts/*/*.otf"] ${target}
}