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