[arch-commits] Commit in xorg-mkfontdir/trunk (PKGBUILD xorg-mkfontdir.hook)
Christian Hesse
eworm at archlinux.org
Tue Jan 10 09:39:06 UTC 2017
Date: Tuesday, January 10, 2017 @ 09:39:05
Author: eworm
Revision: 285628
upgpkg: xorg-mkfontdir 1.0.7-3
add pacman hook to create index of X font files
Added:
xorg-mkfontdir/trunk/xorg-mkfontdir.hook
Modified:
xorg-mkfontdir/trunk/PKGBUILD
---------------------+
PKGBUILD | 12 +++++++-----
xorg-mkfontdir.hook | 17 +++++++++++++++++
2 files changed, 24 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-01-10 09:10:55 UTC (rev 285627)
+++ PKGBUILD 2017-01-10 09:39:05 UTC (rev 285628)
@@ -3,7 +3,7 @@
pkgname=xorg-mkfontdir
pkgver=1.0.7
-pkgrel=2
+pkgrel=3
pkgdesc="Create an index of X font files in a directory"
arch=(any)
url="http://xorg.freedesktop.org/"
@@ -11,8 +11,10 @@
depends=('sh' 'xorg-mkfontscale')
makedepends=('xorg-util-macros')
groups=('xorg' 'xorg-apps')
-source=(http://xorg.freedesktop.org/archive/individual/app/mkfontdir-${pkgver}.tar.bz2)
-sha1sums=('3c06dad8a5fbf7362b51fb7d6b1ab805eba40336')
+source=(http://xorg.freedesktop.org/archive/individual/app/mkfontdir-${pkgver}.tar.bz2
+ xorg-mkfontdir.hook)
+sha1sums=('3c06dad8a5fbf7362b51fb7d6b1ab805eba40336'
+ 'c8f44a0a662521fc83cc1d93b83e000a31f8f064')
build() {
cd "${srcdir}/mkfontdir-${pkgver}"
@@ -23,6 +25,6 @@
package() {
cd "${srcdir}/mkfontdir-${pkgver}"
make DESTDIR="${pkgdir}" install
- install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
- install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
+ install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+ install -Dm644 $srcdir/xorg-mkfontdir.hook "${pkgdir}/usr/share/libalpm/hooks/xorg-mkfontdir.hook"
}
Added: xorg-mkfontdir.hook
===================================================================
--- xorg-mkfontdir.hook (rev 0)
+++ xorg-mkfontdir.hook 2017-01-10 09:39:05 UTC (rev 285628)
@@ -0,0 +1,17 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/fonts/*/*.bdf
+Target = usr/share/fonts/*/*.otf
+Target = usr/share/fonts/*/*.pcf.gz
+Target = usr/share/fonts/*/*.pfa
+Target = usr/share/fonts/*/*.pfb
+Target = usr/share/fonts/*/*.ttf
+
+[Action]
+Description = Creating index of X font files...
+When = PostTransaction
+Exec = /bin/sh -c 'while read -r f; do dirname $f; done | uniq | while read -r d; do mkfontscale /$d && mkfontdir /$d; done'
+NeedsTargets
More information about the arch-commits
mailing list