wok-next view freetype-infinality/receipt @ rev 21103
emacs: depends on emacs-common
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jan 03 11:21:15 2019 +0200 (2019-01-03) |
parents | d5aab818505e |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="freetype-infinality"
4 VERSION="2.4.11"
5 CATEGORY="x-window"
6 SHORT_DESC="Freetype font engine with infinality patches"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="BSD GPL2"
9 WEB_SITE="https://www.freetype.org/"
11 TARBALL="freetype-$VERSION.tar.bz2"
12 WGET_URL="http://download.savannah.gnu.org/releases/freetype/$TARBALL"
14 COOKOPTS="skip-log-errors force-arch" # different .h
16 BUILD_DEPENDS="bzip2-dev"
17 SPLIT="$PACKAGE-dev"
19 compile_rules() {
20 # http://www.infinality.net/blog/infinality-freetype-patches/
21 # http://www.infinality.net/forum/viewtopic.php?f=2&t=77#p794
22 mkdir -p $src/patch
23 tar -xjf $stuff/* -C $src/patch
24 patch -p1 < $src/patch/freetype-enable-subpixel-hinting-infinality-20120615-01.patch
25 patch -p1 < $src/patch/freetype-entire-infinality-patchset-20130104-01.patch
27 ./configure \
28 --disable-static \
29 $CONFIGURE_ARGS &&
30 make &&
31 make install || return 1
33 # profile settings
34 install -Dm644 $src/patch/infinality-settings.sh \
35 $install/etc/profile.d/infinality-settings.sh
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 freetype-infinality)
41 copy @std
42 DEPENDS="slitaz-base-files zlib"
43 PROVIDE="freetype"
44 ;;
45 *-dev)
46 copy @dev
47 DEPENDS="freetype-infinality libzip-dev bzip2-dev"
48 ;;
49 esac
50 }
52 post_install_freetype_infinality() {
53 # SliTaz not support /etc/profile.d/ by default, but use /etc/profile file
54 cat >> "$1/etc/profile" <<EOT
56 # freetype-infinality profile settings
57 . /etc/profile.d/infinality-settings.sh
58 EOT
60 # add patched libs to loader config
61 echo '/usr/lib/freetype-infinality' >> "$1/etc/ld.so.conf"
62 chroot "$1/" ldconfig
64 [ -n "$quiet" ] || cat <<EOT
66 .---------------------------------------.
67 | Now you can log out/in to take effect |
68 | on all your apps. |
69 '---------------------------------------'
70 EOT
71 }
73 post_remove_freetype_infinality() {
74 sed -i '/infinality/d' "$1/etc/profile"
75 sed -i '/freetype-infinality/d' "$1/etc/ld.so.conf"
76 chroot "$1/" ldconfig
77 }