[arch-commits] Commit in fontconfig/repos (4 files)

Jan Steffens heftig at archlinux.org
Fri Jun 19 01:02:59 UTC 2020


    Date: Friday, June 19, 2020 @ 01:02:58
  Author: heftig
Revision: 389523

archrelease: copy trunk to testing-x86_64

Added:
  fontconfig/repos/testing-x86_64/
  fontconfig/repos/testing-x86_64/PKGBUILD
    (from rev 389521, fontconfig/trunk/PKGBUILD)
  fontconfig/repos/testing-x86_64/fontconfig.hook
    (from rev 389521, fontconfig/trunk/fontconfig.hook)
  fontconfig/repos/testing-x86_64/fontconfig.install
    (from rev 389521, fontconfig/trunk/fontconfig.install)

--------------------+
 PKGBUILD           |   78 +++++++++++++++++++++++++++++++++++++++++++++++++++
 fontconfig.hook    |   11 +++++++
 fontconfig.install |   12 +++++++
 3 files changed, 101 insertions(+)

Copied: fontconfig/repos/testing-x86_64/PKGBUILD (from rev 389521, fontconfig/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-06-19 01:02:58 UTC (rev 389523)
@@ -0,0 +1,78 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=fontconfig
+pkgname=(fontconfig fontconfig-docs)
+pkgver=2.13.91+48+gfcb0420
+pkgrel=2
+epoch=2
+pkgdesc="Library for configuring and customizing font access"
+url="https://www.freedesktop.org/wiki/Software/fontconfig/"
+arch=(x86_64)
+license=(custom)
+makedepends=(git autoconf-archive gperf python-lxml python-six docbook-utils docbook-sgml
+             perl-sgmls 'texlive-formatsextra>=2017' lynx json-c expat freetype2)
+checkdepends=(unzip)
+_commit=fcb042028126d79ea5a5fa015b2b034b98656e73  # master
+source=("git+https://gitlab.freedesktop.org/fontconfig/fontconfig.git#commit=$_commit"
+        fontconfig.hook)
+sha256sums=('SKIP'
+            '8883f7e6e9d574ed52b89256507a6224507925715ddc85b3dfab9683df2f1e25')
+
+# a nice page to test font matching:
+# http://zipcon.net/~swhite/docs/computers/browsers/fonttest.html
+# http://getemoji.com/
+
+pkgver() {
+  cd fontconfig
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd fontconfig
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  cd fontconfig
+  ./configure --prefix=/usr \
+    --sysconfdir=/etc \
+    --with-templatedir=/etc/fonts/conf.avail \
+    --localstatedir=/var \
+    --disable-static \
+    --with-default-fonts=/usr/share/fonts \
+    --with-add-fonts=/usr/local/share/fonts
+  make
+}
+
+check() {
+  cd fontconfig
+  make -k check
+}
+
+package_fontconfig() {
+  depends=(expat libfreetype.so)
+  provides=(libfontconfig.so)
+  install=fontconfig.install
+  backup=(etc/fonts/fonts.conf)
+
+  cd fontconfig
+  make DESTDIR="$pkgdir" install
+
+  install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 ../*.hook
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
+
+  # Split -docs
+  mkdir -p "$srcdir/doc/usr/share/man"
+  mv {"$pkgdir","$srcdir"/doc}/usr/share/doc
+  mv {"$pkgdir","$srcdir"/doc}/usr/share/man/man3
+}
+
+package_fontconfig-docs() {
+  pkgdesc+=" (documentation)"
+
+  mv doc/* "$pkgdir"
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 fontconfig/COPYING
+}
+
+# vim:set sw=2 et:

Copied: fontconfig/repos/testing-x86_64/fontconfig.hook (from rev 389521, fontconfig/trunk/fontconfig.hook)
===================================================================
--- testing-x86_64/fontconfig.hook	                        (rev 0)
+++ testing-x86_64/fontconfig.hook	2020-06-19 01:02:58 UTC (rev 389523)
@@ -0,0 +1,11 @@
+[Trigger]
+Type = Path
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/fonts/*
+
+[Action]
+Description = Updating fontconfig cache...
+When = PostTransaction
+Exec = /usr/bin/fc-cache -s

Copied: fontconfig/repos/testing-x86_64/fontconfig.install (from rev 389521, fontconfig/trunk/fontconfig.install)
===================================================================
--- testing-x86_64/fontconfig.install	                        (rev 0)
+++ testing-x86_64/fontconfig.install	2020-06-19 01:02:58 UTC (rev 389523)
@@ -0,0 +1,12 @@
+post_upgrade() {
+  # a full forced directory scan is required here
+  echo -n "Rebuilding fontconfig cache..."
+  /usr/bin/fc-cache -rs
+  echo " done."
+}
+
+post_install() {
+  post_upgrade $1 0
+}
+
+# vim:set sw=2 et:



More information about the arch-commits mailing list