blob: e62d2fc1b1330a75b7af6c64264c04ada51288b1 (
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
63
64
65
66
67
68
69
70
|
# Maintainer: Det
# Contributors: Joris Steyn, Florian Dejonckheere, Tevin Zhang, Andrea Fagiani, Biru Ionut, Paul Bredbury
# Installation order: freetype2-ubuntu → fontconfig-ubuntu → cairo-ubuntu
pkgname=fontconfig-ubuntu
pkgver=2.11.94
_ubver=0ubuntu2
pkgrel=2
pkgdesc="Library for configuring and customizing font access - with Ubuntu's patches"
arch=('i686' 'x86_64')
url="https://launchpad.net/ubuntu/+source/fontconfig"
license=('custom')
depends=('expat' 'freetype2-ubuntu')
makedepends=('python2' 'docbook2x')
conflicts=('fontconfig')
provides=("fontconfig=$pkgver")
options=('!libtool')
install=$pkgname.install
source=("https://launchpad.net/ubuntu/+archive/primary/+files/fontconfig_$pkgver.orig.tar.bz2"
"https://launchpad.net/ubuntu/+archive/primary/+files/fontconfig_$pkgver-$_ubver.debian.tar.xz"
'53-monospace-lcd-filter.patch')
md5sums=('c988ea12f4117330246e041109152b4a'
'1527bc9abef9c13eef6178b4369dda2e'
'a17e48be6a06bc056574be6756cb9738')
# a nice page to test font matching:
# http://zipcon.net/~swhite/docs/computers/browsers/fonttest.html
# http://getemoji.com/
prepare() {
cd fontconfig-$pkgver
# loop debian patches
for _f in $(cat ../debian/patches/series); do
patch -Np1 -i "../debian/patches/$_f"
done
## patch
#patch -u conf.d/53-monospace-lcd-filter.conf ../53-monospace-lcd-filter.patch
}
build() {
cd fontconfig-$pkgver
msg2 "Running ./configure.."
./configure --prefix=/usr \
--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/share/fonts
msg2 "Running make.."
make
}
package() {
cd fontconfig-$pkgver
msg2 "Running 'make install'.."
make DESTDIR="$pkgdir" install
# License
install -Dm0644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
# Docs
install -Dm0644 ../debian/changelog "$pkgdir"/usr/share/doc/fontconfig/changelog
}
|