wok view fontconfig/receipt @ rev 25442
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 02 16:30:36 2022 +0000 (2022-09-02) |
parents | 7e911016a644 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="fontconfig"
4 VERSION="2.13.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Font configuration utilities and library"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.freedesktop.org/wiki/Software/fontconfig/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="https://www.freedesktop.org/software/fontconfig/release/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="bzlib expat freetype libxml2"
15 BUILD_DEPENDS="libxml2-dev freetype-dev liblzma-dev util-linux-uuid-dev gperf"
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed '/stable/!d;s|.* is ||;s|. .*||'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --sysconfdir=/etc \
28 --localstatedir=/var \
29 --with-arch=$ARCH \
30 --disable-static \
31 --enable-iconv \
32 --enable-libxml2 \
33 --disable-docs \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$install install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
43 cp -a $install/etc $fs
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 cp -a $install/usr/share $fs/usr
47 cp -a $install/var $fs
49 cd $fs/usr/share/fontconfig/conf.avail
50 for h in hintslight hintmedium hintfull; do
51 cat > 10-hintstyle-$h.conf <<EOT
52 <match target="font">
53 <edit mode="append" name="hintstyle">
54 <const>${h}</const>
55 </edit>
56 </match>
57 EOT
58 done
60 ln -s /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf \
61 $fs/etc/fonts/conf.d
63 # Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading
64 # configurations from ~/.fonts.conf is deprecated.
65 sed '/~\/\.fonts\.conf</d' $fs/usr/share/fontconfig/conf.avail/50-user.conf
67 chown -R root.root $fs
68 }