[arch-commits] Commit in lib32-fontconfig/repos (4 files)
Jan Steffens
heftig at archlinux.org
Thu Mar 15 11:23:07 UTC 2018
Date: Thursday, March 15, 2018 @ 11:23:06
Author: heftig
Revision: 308466
archrelease: copy trunk to multilib-staging-x86_64
Added:
lib32-fontconfig/repos/multilib-staging-x86_64/
lib32-fontconfig/repos/multilib-staging-x86_64/PKGBUILD
(from rev 308465, lib32-fontconfig/trunk/PKGBUILD)
lib32-fontconfig/repos/multilib-staging-x86_64/lib32-fontconfig.hook
(from rev 308465, lib32-fontconfig/trunk/lib32-fontconfig.hook)
lib32-fontconfig/repos/multilib-staging-x86_64/lib32-fontconfig.install
(from rev 308465, lib32-fontconfig/trunk/lib32-fontconfig.install)
--------------------------+
PKGBUILD | 72 +++++++++++++++++++++++++++++++++++++++++++++
lib32-fontconfig.hook | 11 ++++++
lib32-fontconfig.install | 10 ++++++
3 files changed, 93 insertions(+)
Copied: lib32-fontconfig/repos/multilib-staging-x86_64/PKGBUILD (from rev 308465, lib32-fontconfig/trunk/PKGBUILD)
===================================================================
--- multilib-staging-x86_64/PKGBUILD (rev 0)
+++ multilib-staging-x86_64/PKGBUILD 2018-03-15 11:23:06 UTC (rev 308466)
@@ -0,0 +1,72 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+_pkgbasename=fontconfig
+pkgname=lib32-$_pkgbasename
+pkgver=2.13.0
+pkgrel=1
+pkgdesc="A library for configuring and customizing font access (32-bit)"
+arch=(x86_64)
+url="https://www.freedesktop.org/wiki/Software/fontconfig/"
+license=(custom)
+depends=(lib32-expat lib32-freetype2 $_pkgbasename)
+makedepends=(git autoconf-archive gperf python-lxml python-six)
+install=lib32-fontconfig.install
+_commit=f075ca1aeaedbc288d42a70df5cf2fd069ea0d10 # tags/2.13.0^0
+source=("git+https://anongit.freedesktop.org/git/fontconfig#commit=$_commit"
+ lib32-fontconfig.hook)
+sha256sums=('SKIP'
+ 'd97c0c5b88023da5a2acf64cf560265390a9365305c43b8e86b4f89348e727b3')
+
+# a nice page to test font matching:
+# http://zipcon.net/~swhite/docs/computers/browsers/fonttest.html
+# http://getemoji.com/
+
+pkgver() {
+ cd $_pkgbasename
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd $_pkgbasename
+ NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+ cd $_pkgbasename
+
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ ./configure --prefix=/usr \
+ --libdir=/usr/lib32 \
+ --sysconfdir=/etc \
+ --with-templatedir=/etc/fonts/conf.avail \
+ --with-xmldir=/etc/fonts \
+ --localstatedir=/var \
+ --disable-static \
+ --with-default-fonts=/usr/share/fonts \
+ --with-add-fonts=/usr/local/share/fonts
+ make
+}
+
+check() {
+ cd $_pkgbasename
+ make -k check
+}
+
+package() {
+ cd $_pkgbasename
+ make DESTDIR="$pkgdir" install
+
+ rm -r "$pkgdir"/{etc,usr/{include,share}}
+ find "$pkgdir/usr/bin" -not -type d -not -name fc-cache -delete
+ mv "$pkgdir"/usr/bin/fc-cache{,-32}
+
+ install -Dm644 ../lib32-fontconfig.hook "$pkgdir/usr/share/libalpm/hooks/lib32-fontconfig.hook"
+
+ # Install license
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+}
Copied: lib32-fontconfig/repos/multilib-staging-x86_64/lib32-fontconfig.hook (from rev 308465, lib32-fontconfig/trunk/lib32-fontconfig.hook)
===================================================================
--- multilib-staging-x86_64/lib32-fontconfig.hook (rev 0)
+++ multilib-staging-x86_64/lib32-fontconfig.hook 2018-03-15 11:23:06 UTC (rev 308466)
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/fonts/*
+
+[Action]
+Description = Updating 32-bit fontconfig cache...
+When = PostTransaction
+Exec = /usr/bin/fc-cache-32 -s
Copied: lib32-fontconfig/repos/multilib-staging-x86_64/lib32-fontconfig.install (from rev 308465, lib32-fontconfig/trunk/lib32-fontconfig.install)
===================================================================
--- multilib-staging-x86_64/lib32-fontconfig.install (rev 0)
+++ multilib-staging-x86_64/lib32-fontconfig.install 2018-03-15 11:23:06 UTC (rev 308466)
@@ -0,0 +1,10 @@
+post_install() {
+ post_upgrade $1
+}
+
+post_upgrade() {
+ echo -n "Rebuilding 32-bit fontconfig cache..."
+ # a full forced directory scan is required here
+ /usr/bin/fc-cache-32 -rs
+ echo " done."
+}
More information about the arch-commits
mailing list