aboutsummaryrefslogtreecommitdiffstats
path: root/community/font-roboto-mono/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/font-roboto-mono/APKBUILD')
-rw-r--r--community/font-roboto-mono/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/font-roboto-mono/APKBUILD b/community/font-roboto-mono/APKBUILD
new file mode 100644
index 00000000000..2ace9a14d26
--- /dev/null
+++ b/community/font-roboto-mono/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=font-roboto-mono
+_projname=RobotoMono
+# Version based on https://github.com/google/fonts/pull/2481
+pkgver=3.000
+_gitrev=8f651634e746da6df6c2c0be73255721d24f2372
+pkgrel=0
+pkgdesc="Google Roboto Mono fonts"
+url="https://github.com/googlefonts/RobotoMono"
+arch="noarch"
+license="Apache-2.0"
+depends="fontconfig mkfontscale"
+source="https://github.com/googlefonts/RobotoMono/archive/$_gitrev/$_projname-$_gitrev.tar.gz
+ 45-roboto-mono.conf
+ "
+builddir="$srcdir/$_projname-$_gitrev"
+options="!check" # no code to test
+
+package() {
+ local fontname=${pkgname#font-}
+
+ install -D -m644 fonts/variable/*.ttf -t "$pkgdir"/usr/share/fonts/$fontname/
+
+ cd "$pkgdir"
+
+ install -D -m644 "$srcdir"/45-$fontname.conf -t etc/fonts/conf.avail/
+ mkdir -p etc/fonts/conf.d
+ ln -s ../conf.avail/45-$fontname.conf etc/fonts/conf.d/
+}
+
+sha512sums="
+e96f87fc237e72d09b0b771beb0ae9100b6dad037fb843dc67d79ef0c3aa0850e70233e43f65432813feae85c2b025ba6c982caa542da7f6dbeb26d45b35a275 RobotoMono-8f651634e746da6df6c2c0be73255721d24f2372.tar.gz
+be5b896657b1985d43b4eb5e01548f9aa671dfe51c19f3421924f1e51895c1421ccf7a41594e3dd2524c909bec857d14d2f5b19dc92cfdaea37fbc997ae0054c 45-roboto-mono.conf
+"