[arch-commits] Commit in xorg-mkfontdir/repos (3 files)
Christian Hesse
eworm at archlinux.org
Tue Jan 10 09:39:09 UTC 2017
Date: Tuesday, January 10, 2017 @ 09:39:09
Author: eworm
Revision: 285629
archrelease: copy trunk to testing-any
Added:
xorg-mkfontdir/repos/testing-any/
xorg-mkfontdir/repos/testing-any/PKGBUILD
(from rev 285628, xorg-mkfontdir/trunk/PKGBUILD)
xorg-mkfontdir/repos/testing-any/xorg-mkfontdir.hook
(from rev 285628, xorg-mkfontdir/trunk/xorg-mkfontdir.hook)
---------------------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
xorg-mkfontdir.hook | 17 +++++++++++++++++
2 files changed, 47 insertions(+)
Copied: xorg-mkfontdir/repos/testing-any/PKGBUILD (from rev 285628, xorg-mkfontdir/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2017-01-10 09:39:09 UTC (rev 285629)
@@ -0,0 +1,30 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=xorg-mkfontdir
+pkgver=1.0.7
+pkgrel=3
+pkgdesc="Create an index of X font files in a directory"
+arch=(any)
+url="http://xorg.freedesktop.org/"
+license=('custom')
+depends=('sh' 'xorg-mkfontscale')
+makedepends=('xorg-util-macros')
+groups=('xorg' 'xorg-apps')
+source=(http://xorg.freedesktop.org/archive/individual/app/mkfontdir-${pkgver}.tar.bz2
+ xorg-mkfontdir.hook)
+sha1sums=('3c06dad8a5fbf7362b51fb7d6b1ab805eba40336'
+ 'c8f44a0a662521fc83cc1d93b83e000a31f8f064')
+
+build() {
+ cd "${srcdir}/mkfontdir-${pkgver}"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/mkfontdir-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+ install -Dm644 $srcdir/xorg-mkfontdir.hook "${pkgdir}/usr/share/libalpm/hooks/xorg-mkfontdir.hook"
+}
Copied: xorg-mkfontdir/repos/testing-any/xorg-mkfontdir.hook (from rev 285628, xorg-mkfontdir/trunk/xorg-mkfontdir.hook)
===================================================================
--- testing-any/xorg-mkfontdir.hook (rev 0)
+++ testing-any/xorg-mkfontdir.hook 2017-01-10 09:39:09 UTC (rev 285629)
@@ -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