summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Choina2019-05-29 23:25:24 -0400
committerSolomon Choina2019-05-29 23:25:24 -0400
commitc665ae5c08fd062e5cc107a0682fce82a3b93dce (patch)
treee400975dfd75ccaff917b770ffeaf6ea65efe0db
downloadaur-c665ae5c08fd062e5cc107a0682fce82a3b93dce.tar.gz
initial commit
-rw-r--r--.SRCINFO31
-rw-r--r--PKGBUILD78
-rw-r--r--fontconfig-32.hook11
-rw-r--r--lib32-fontconfig.install10
4 files changed, 130 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9b7f29cb5a6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,31 @@
+pkgbase = lib32-fontconfig-infinality
+ pkgdesc = A library for configuring and customizing font access (32-bit)
+ pkgver = 2.13.1+12+g5f5ec56
+ pkgrel = 1
+ url = https://www.freedesktop.org/wiki/Software/fontconfig/
+ install = lib32-fontconfig.install
+ arch = x86_64
+ groups = infinality-bundle-multilib
+ license = custom
+ license = MIT
+ makedepends = git
+ makedepends = autoconf-archive
+ makedepends = gperf
+ makedepends = python-lxml
+ makedepends = python-six
+ makedepends = lib32-json-c
+ makedepends = gcc-multilib
+ makedepends = lib32-expat
+ depends = lib32-expat
+ depends = lib32-freetype2-infinality
+ depends = fontconfig-infinality
+ provides = lib32-fontconfig
+ conflicts = lib32-fontconfig
+ options = !libtool
+ source = git+https://anongit.freedesktop.org/git/fontconfig#commit=5f5ec5676c61b9773026a9335c9b0dfa73a73353
+ source = fontconfig-32.hook
+ sha256sums = SKIP
+ sha256sums = d97c0c5b88023da5a2acf64cf560265390a9365305c43b8e86b4f89348e727b3
+
+pkgname = lib32-fontconfig-infinality
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..952a1743c28
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,78 @@
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+# Maintainer: bohoomil <@zoho.com>
+# Maintainer: Solomon Choina <shlomochoina@gmail.com>
+_pkgbasename=fontconfig
+pkgname=lib32-$_pkgbasename-infinality
+pkgver=2.13.1+12+g5f5ec56
+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 MIT)
+groups=(infinality-bundle-multilib)
+depends=(lib32-expat lib32-freetype2-infinality $_pkgbasename-infinality)
+makedepends=(git autoconf-archive gperf python-lxml python-six lib32-json-c gcc-multilib lib32-expat)
+install=lib32-fontconfig.install
+options=('!libtool')
+provides=(lib32-fontconfig)
+conflicts=(lib32-fontconfig)
+_commit=5f5ec5676c61b9773026a9335c9b0dfa73a73353 # master
+source=("git+https://anongit.freedesktop.org/git/fontconfig#commit=$_commit"
+ fontconfig-32.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 \
+ --disable-docs \
+ --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 ../fontconfig-32.hook "$pkgdir/usr/share/libalpm/hooks/fontconfig-32.hook"
+
+ # Install license
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+}
diff --git a/fontconfig-32.hook b/fontconfig-32.hook
new file mode 100644
index 00000000000..e1943477694
--- /dev/null
+++ b/fontconfig-32.hook
@@ -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
diff --git a/lib32-fontconfig.install b/lib32-fontconfig.install
new file mode 100644
index 00000000000..a02b1e7a71e
--- /dev/null
+++ b/lib32-fontconfig.install
@@ -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."
+}