[arch-commits] Commit in xorg-mkfontdir/repos (5 files)

Jan Steffens heftig at archlinux.org
Fri Jan 13 20:57:46 UTC 2017


    Date: Friday, January 13, 2017 @ 20:57:45
  Author: heftig
Revision: 286217

archrelease: copy trunk to testing-any

Added:
  xorg-mkfontdir/repos/testing-any/
  xorg-mkfontdir/repos/testing-any/PKGBUILD
    (from rev 286216, xorg-mkfontdir/trunk/PKGBUILD)
  xorg-mkfontdir/repos/testing-any/xorg-mkfontdir.hook
    (from rev 286216, xorg-mkfontdir/trunk/xorg-mkfontdir.hook)
  xorg-mkfontdir/repos/testing-any/xorg-mkfontdir.install
    (from rev 286216, xorg-mkfontdir/trunk/xorg-mkfontdir.install)
  xorg-mkfontdir/repos/testing-any/xorg-mkfontdir.script
    (from rev 286216, xorg-mkfontdir/trunk/xorg-mkfontdir.script)

------------------------+
 PKGBUILD               |   34 ++++++++++++++++++++++++++++++++++
 xorg-mkfontdir.hook    |   12 ++++++++++++
 xorg-mkfontdir.install |    7 +++++++
 xorg-mkfontdir.script  |    9 +++++++++
 4 files changed, 62 insertions(+)

Copied: xorg-mkfontdir/repos/testing-any/PKGBUILD (from rev 286216, xorg-mkfontdir/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2017-01-13 20:57:45 UTC (rev 286217)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=xorg-mkfontdir
+pkgver=1.0.7
+pkgrel=6
+pkgdesc="Create an index of X font files in a directory"
+arch=(any)
+url="http://xorg.freedesktop.org/"
+license=('custom')
+depends=('bash' 'xorg-mkfontscale')
+makedepends=('xorg-util-macros')
+groups=('xorg' 'xorg-apps')
+install=xorg-mkfontdir.install
+source=(http://xorg.freedesktop.org/archive/individual/app/mkfontdir-${pkgver}.tar.bz2
+        xorg-mkfontdir.hook
+        xorg-mkfontdir.script)
+sha256sums=('56d52a482df130484e51fd066d1b6eda7c2c02ddbc91fe6e2be1b9c4e7306530'
+            'df6f71601b2be5161bb8e980acee753d6ef86d71221f61627422bcbe87ed09cd'
+            '06c60e3e46a76b5300c3224cea6b5094556ea712a08ff9a0103be2eb58d222b5')
+
+build() {
+  cd mkfontdir-${pkgver}
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd mkfontdir-${pkgver}
+  make DESTDIR="${pkgdir}" install
+  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+  install -Dm644 ../xorg-mkfontdir.hook "${pkgdir}/usr/share/libalpm/hooks/xorg-mkfontdir.hook"
+  install -D ../xorg-mkfontdir.script "${pkgdir}/usr/share/libalpm/scripts/xorg-mkfontdir"
+}

Copied: xorg-mkfontdir/repos/testing-any/xorg-mkfontdir.hook (from rev 286216, xorg-mkfontdir/trunk/xorg-mkfontdir.hook)
===================================================================
--- testing-any/xorg-mkfontdir.hook	                        (rev 0)
+++ testing-any/xorg-mkfontdir.hook	2017-01-13 20:57:45 UTC (rev 286217)
@@ -0,0 +1,12 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/fonts/*/
+
+[Action]
+Description = Updating X fontdir indices...
+When = PostTransaction
+Exec = /usr/share/libalpm/scripts/xorg-mkfontdir
+NeedsTargets

Copied: xorg-mkfontdir/repos/testing-any/xorg-mkfontdir.install (from rev 286216, xorg-mkfontdir/trunk/xorg-mkfontdir.install)
===================================================================
--- testing-any/xorg-mkfontdir.install	                        (rev 0)
+++ testing-any/xorg-mkfontdir.install	2017-01-13 20:57:45 UTC (rev 286217)
@@ -0,0 +1,7 @@
+post_install() {
+  if [[ -d /usr/share/fonts ]]; then
+    echo -n "Creating X fontdir indices..."
+    find /usr/share/fonts -mindepth 1 -type d | /usr/share/libalpm/scripts/xorg-mkfontdir
+    echo " done."
+  fi
+}

Copied: xorg-mkfontdir/repos/testing-any/xorg-mkfontdir.script (from rev 286216, xorg-mkfontdir/trunk/xorg-mkfontdir.script)
===================================================================
--- testing-any/xorg-mkfontdir.script	                        (rev 0)
+++ testing-any/xorg-mkfontdir.script	2017-01-13 20:57:45 UTC (rev 286217)
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+sort -r | while read -r d; do
+  [[ -d $d ]] || continue
+  mkfontscale "$d"
+  mkfontdir "$d"
+  find "$d"fonts.{scale,dir} -maxdepth 0 -size -3c -delete
+  rmdir --ignore-fail-on-non-empty "$d"
+done



More information about the arch-commits mailing list