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