blob: ca5da18b34f6075f98e17547ddf66045950a575b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Maintainer: bohoomil <@zoho.com>
_basename=fontconfig
pkgname=lib32-$_basename-infinality-ultimate
pkgver=2.13.1
pkgrel=1
pkgdesc="A library for configuring and customizing font access (32-bit, infinality-bundle)"
arch=(x86_64)
url="http://www.fontconfig.org/release/"
license=('custom' 'MIT')
groups=('infinality-bundle-multilib')
depends=('lib32-expat' $_basename-infinality-ultimate)
makedepends=('gcc-multilib' 'lib32-json-c' 'lib32-expat' 'gperf' 'python2-lxml')
options=('!libtool')
provides=('lib32-fontconfig')
conflicts=('lib32-fontconfig')
install="lib32-fontconfig.install"
source=(http://www.fontconfig.org/release/${_basename}-${pkgver}.tar.bz2
lib32-fontconfig.hook)
sha1sums=('75612356ef4f801735b49baf987f8942b4a7a5e1'
'765f355f84c200b9ca4e0ea3c69c41474167fc84')
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd "${srcdir}/${_basename}-${pkgver}"
./configure --prefix=/usr \
--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/share/fonts \
--libdir=/usr/lib32
make
}
#check() {
# cd "${srcdir}/${_basename}-${pkgver}"
# make -k check
#}
package() {
cd "${srcdir}/${_basename}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/{etc,usr/{include,share}}
find "${pkgdir}/usr/bin" -not -type d -not -name fc-cache -delete
mv "${pkgdir}"/usr/bin/fc-cache{,-32}
mkdir -p "${pkgdir}/usr/share/licenses"
install -Dm644 ../lib32-fontconfig.hook "$pkgdir/usr/share/libalpm/hooks/lib32-fontconfig.hook"
ln -s ${_basename} "${pkgdir}/usr/share/licenses/${pkgname}"
}
|