summaryrefslogtreecommitdiff
path: root/repo/font-fira
diff options
context:
space:
mode:
Diffstat (limited to 'repo/font-fira')
-rw-r--r--repo/font-fira/font-fira.xibuild32
1 files changed, 32 insertions, 0 deletions
diff --git a/repo/font-fira/font-fira.xibuild b/repo/font-fira/font-fira.xibuild
new file mode 100644
index 0000000..3d794a9
--- /dev/null
+++ b/repo/font-fira/font-fira.xibuild
@@ -0,0 +1,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
+}