blob: 5748be7e91a19fbb2223a2bbb61a342129d25eff (
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
|
# $Id$
# Maintainer: Mingye Wang <arthur2e5@aosc.io>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=fontconfig-srb
pkgver=2.13.0+aosc+rel0
pkgrel=1
pkgdesc="A library for configuring and customizing font access (michalsrb performance patch, AOSC variant)"
arch=(x86_64)
url="https://github.com/AOSC-Dev/fontconfig"
license=(custom)
depends=(expat freetype2 gettext)
makedepends=(git autoconf-archive gperf python-lxml python-six docbook-utils docbook-sgml
perl-sgmls 'texlive-formatsextra>=2017' lynx)
provides=(fontconfig)
conflicts=(fontconfig)
install=fontconfig.install
_commit=bdee8c0781eb8ab1af69d34e6360b2fd2338bccc
source=("$pkgname::git+https://github.com/AOSC-Dev/fontconfig#commit=$_commit"
fontconfig.hook)
sha256sums=('SKIP'
'672f6a1c5e164671955ce807e670306194142a1794ce88df653aa717a972e274')
# a nice page to test font matching:
# http://zipcon.net/~swhite/docs/computers/browsers/fonttest.html
# http://getemoji.com/
#pkgver() {
# cd $pkgname
# git describe --tags | sed -e 's/^v//g' -e 's/-/+/g'
#}
prepare() {
cd $pkgname
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd $pkgname
./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/local/share/fonts
make
}
check() {
cd $pkgname
make -k check
}
_install_conf() {
install -m644 "$1" "$pkgdir/etc/fonts/conf.avail"
ln -s "../conf.avail/${1##*/}" "$pkgdir/etc/fonts/conf.d"
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
install -Dm644 ../fontconfig.hook "$pkgdir/usr/share/libalpm/hooks/fontconfig.hook"
}
|