summaryrefslogtreecommitdiff
path: root/user/mkfontdir
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-03 00:03:26 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-03 00:03:26 -0600
commit8a2f909780210d0af38de3ce537c1b5b57e0f6f2 (patch)
treee1fd08fa42ab2c2aa613e531264316da93b0bd4e /user/mkfontdir
parent25863572d365f354f44190ad831d8cc33a6e2d3a (diff)
downloadpackages-8a2f909780210d0af38de3ce537c1b5b57e0f6f2.tar.gz
packages-8a2f909780210d0af38de3ce537c1b5b57e0f6f2.tar.bz2
packages-8a2f909780210d0af38de3ce537c1b5b57e0f6f2.tar.xz
packages-8a2f909780210d0af38de3ce537c1b5b57e0f6f2.zip
user/mkfontdir: trigger on X11 font dirs, create encodings.dir files too
Diffstat (limited to 'user/mkfontdir')
-rw-r--r--user/mkfontdir/APKBUILD7
-rw-r--r--user/mkfontdir/mkfontdir.trigger2
2 files changed, 5 insertions, 4 deletions
diff --git a/user/mkfontdir/APKBUILD b/user/mkfontdir/APKBUILD
index ef3ed4edc..45629cd20 100644
--- a/user/mkfontdir/APKBUILD
+++ b/user/mkfontdir/APKBUILD
@@ -1,15 +1,16 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=mkfontdir
pkgver=1.0.7
-pkgrel=2
+pkgrel=3
pkgdesc="Font file index utility from X.Org"
url="https://www.X.Org/"
arch="noarch"
license="X11 AND MIT"
-depends="mkfontscale"
+depends="encodings mkfontscale"
makedepends="util-macros"
subpackages="$pkgname-doc"
-triggers="$pkgname.trigger=/usr/share/fonts/*"
+triggers="$pkgname.trigger=/usr/share/fonts/*
+ $pkgname.trigger=/usr/share/fonts/X11/*"
source="https://www.X.Org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
prepare() {
diff --git a/user/mkfontdir/mkfontdir.trigger b/user/mkfontdir/mkfontdir.trigger
index 4fce36a11..3024d71f1 100644
--- a/user/mkfontdir/mkfontdir.trigger
+++ b/user/mkfontdir/mkfontdir.trigger
@@ -1,6 +1,6 @@
#!/bin/sh
for i in "$@"; do
- mkfontdir "$i"
+ mkfontdir -e "/usr/share/fonts/X11/encodings" -e "/usr/share/fonts/X11/encodings/large" -- "$i"
done