summaryrefslogtreecommitdiff
path: root/repo/font-fira/font-fira.xibuild
blob: 3d794a9af81df5ed79041b67e95bdb271a1550eb (plain)
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
#!/bin/sh

NAME="font-fira"
DESC="Mozilla's new typeface OTF, used in Firefox OS"

MAKEDEPS=""

PKG_VER=4.202
SOURCE="https://github.com/mozilla/Fira/archive/$PKG_VER.tar.gz"

package() {
	mkdir -p "$PKG_DEST"
    otf
    ttf
}

otf() {
	depends="fontconfig"

    for f in $BUILD_ROOT/otf/*.otf; do
        install -Dm644 $f "$PKG_DEST"/usr/share/fonts/OTF
    done
}

ttf() {
	pkgdesc="$pkgdesc (TTF version)"
	depends="fontconfig"

    for f in $BUILD_ROOT/ttf/*.ttf; do
        install -Dm644 $f "$PKG_DEST"/usr/share/fonts/TTF
    done
}