summaryrefslogtreecommitdiff
path: root/user/ttf-dejavu/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-21 04:58:38 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-21 04:58:42 -0500
commit0a5c989847fd1f917f199774da78ce71f27287d6 (patch)
tree00559fdc70ed15476720fb0af40ec5ebd5c416fd /user/ttf-dejavu/APKBUILD
parent94a49fbf8d93eacff01eba59f5e60bf9fb33eb80 (diff)
downloadpackages-0a5c989847fd1f917f199774da78ce71f27287d6.tar.gz
packages-0a5c989847fd1f917f199774da78ce71f27287d6.tar.bz2
packages-0a5c989847fd1f917f199774da78ce71f27287d6.tar.xz
packages-0a5c989847fd1f917f199774da78ce71f27287d6.zip
user/ttf-dejavu: pull in, fix up somewhat [ugh]
Diffstat (limited to 'user/ttf-dejavu/APKBUILD')
-rw-r--r--user/ttf-dejavu/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/user/ttf-dejavu/APKBUILD b/user/ttf-dejavu/APKBUILD
new file mode 100644
index 000000000..b69fefb4e
--- /dev/null
+++ b/user/ttf-dejavu/APKBUILD
@@ -0,0 +1,43 @@
+# Maintainer:
+pkgname=ttf-dejavu
+pkgver=2.37
+pkgrel=0
+pkgdesc="Font family with many glyphs based on Vera Fonts"
+url="https://dejavu-fonts.github.io/"
+arch="noarch"
+options="!check" # You can't test fonts. -.-
+license="MIT-style custom"
+depends="fontconfig encodings mkfontdir mkfontscale"
+makedepends="font-util-dev"
+subpackages=""
+# added fontconfig configuration from:
+# https://github.com/bohoomil/fontconfig-ultimate/tree/master/fontconfig_patches/fonts-settings
+source="http://downloads.sourceforge.net/project/dejavu/dejavu/${pkgver}/dejavu-fonts-ttf-${pkgver}.tar.bz2
+ http://downloads.sourceforge.net/project/dejavu/dejavu/${pkgver}/dejavu-lgc-fonts-ttf-${pkgver}.tar.bz2
+ 45-dejavu.conf
+ 90-tt-dejavu.conf"
+
+package() {
+ mkdir -p "$pkgdir"/usr/share/fonts/$pkgname \
+ "$pkgdir"/etc/fonts/conf.avail \
+ "$pkgdir"/etc/fonts/conf.d
+
+ install -m644 "$srcdir"/dejavu-fonts-ttf-$pkgver/ttf/*.ttf \
+ "$srcdir"/dejavu-lgc-fonts-ttf-$pkgver/ttf/*.ttf \
+ "$pkgdir"/usr/share/fonts/$pkgname
+
+ install -m644 "$srcdir"/dejavu-fonts-ttf-$pkgver/fontconfig/*.conf \
+ "$srcdir"/dejavu-lgc-fonts-ttf-$pkgver/fontconfig/*.conf \
+ "$pkgdir"/etc/fonts/conf.avail
+
+ cd "$pkgdir"/etc/fonts/conf.d
+ for j in "$srcdir"/*.conf; do
+ install -m644 "$j" "$pkgdir"/etc/fonts/conf.avail/
+ ln -sf /etc/fonts/conf.avail/${j##*/}
+ done
+}
+
+sha512sums="bafa39321021097432777f0825d700190c23f917d754a4504722cd8946716c22c083836294dab7f3ae7cf20af63c4d0944f3423bf4aa25dbca562d1f30e00654 dejavu-fonts-ttf-2.37.tar.bz2
+4bf36813b4143a482a50ee20377166cbc22e3aa62ccb453fe6ce27d2286acaf2b6f06759eb5d5000d2f868a7d93ecad851ad29de60fb531ed9ac2fcd7b9bdc1f dejavu-lgc-fonts-ttf-2.37.tar.bz2
+df82fea7ad6c58edcc20c960fd2de9d49c70e23f9e63180b063c848a6f0d5592e2ce31dc0dc4a0b5abc8e682393c827c96b4a9da9203974672ebd3a77e5b9fc3 45-dejavu.conf
+bc12705369050739143eda6a2dadaada954112ea262bd297a4823b31861f3da0f61e17ad6fb61226caea16323c3bc9cd88e8b0e60f61b2af6d245af885a4399c 90-tt-dejavu.conf"