wok-current annotate freetype-infinality/receipt @ rev 23108
updated libtdb and libtdb-dev (1.2.9 -> 1.4.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 12 13:59:33 2020 +0100 (2020-03-12) |
parents | 9e01bc6321ea |
children | 17091bc7c301 |
rev | line source |
---|---|
al@14225 | 1 # SliTaz package receipt. |
al@14225 | 2 |
al@14225 | 3 PACKAGE="freetype-infinality" |
al@14225 | 4 PROVIDE="freetype" |
al@14225 | 5 VERSION="2.4.11" |
al@14225 | 6 CATEGORY="x-window" |
al@14225 | 7 SHORT_DESC="Freetype font engine with infinality patches" |
al@14225 | 8 MAINTAINER="al.bobylev@gmail.com" |
pascal@15215 | 9 LICENSE="BSD GPL2" |
al@14225 | 10 SOURCE="freetype" |
al@14225 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@20669 | 12 WEB_SITE="https://www.freetype.org/" |
al@14226 | 13 WGET_URL="http://download.savannah.gnu.org/releases/$SOURCE/$TARBALL" |
al@14225 | 14 |
al@14225 | 15 DEPENDS="slitaz-base-files zlib" |
al@14225 | 16 BUILD_DEPENDS="bzip2-dev" |
al@14225 | 17 |
al@14225 | 18 # Rules to configure and make the package. |
al@14225 | 19 compile_rules() |
al@14225 | 20 { |
al@14225 | 21 # http://www.infinality.net/blog/infinality-freetype-patches/ |
al@14225 | 22 # http://www.infinality.net/forum/viewtopic.php?f=2&t=77#p794 |
al@14225 | 23 mkdir -p $src/patch |
al@14225 | 24 tar -xjf $stuff/* -C $src/patch |
al@14225 | 25 patch -p1 < $src/patch/freetype-enable-subpixel-hinting-infinality-20120615-01.patch |
al@14225 | 26 patch -p1 < $src/patch/freetype-entire-infinality-patchset-20130104-01.patch |
al@14225 | 27 |
al@14225 | 28 ./configure \ |
al@14225 | 29 --sysconfdir=/etc \ |
al@14225 | 30 --disable-static \ |
al@14225 | 31 $CONFIGURE_ARGS && |
al@14225 | 32 make && |
pascal@14232 | 33 make install 2>&1 | grep -v rmdir |
al@14225 | 34 } |
al@14225 | 35 |
al@14225 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@14225 | 37 genpkg_rules() |
al@14225 | 38 { |
al@14225 | 39 mkdir -p \ |
al@14225 | 40 $fs/etc/profile.d \ |
al@14225 | 41 $fs/usr/lib/freetype-infinality |
al@14225 | 42 # profile settings |
al@14225 | 43 install -m644 $src/patch/infinality-settings.sh $fs/etc/profile.d |
al@14225 | 44 # binary & libs |
al@14225 | 45 cp -a $install/usr/bin $fs/usr |
al@14225 | 46 cp -a $install/usr/lib/*.so* $fs/usr/lib/freetype-infinality |
al@14225 | 47 } |
al@14225 | 48 |
al@14225 | 49 |
al@14225 | 50 post_install() |
al@14225 | 51 { |
al@14225 | 52 # SliTaz not support /etc/profile.d/ by default, but use /etc/profile file |
pascal@18730 | 53 cat >> "$1/etc/profile" << EOT |
al@14225 | 54 |
al@14225 | 55 # freetype-infinality profile settings |
al@14225 | 56 . /etc/profile.d/infinality-settings.sh |
al@14225 | 57 EOT |
al@14225 | 58 |
al@14225 | 59 # add patched libs to loader config |
pascal@18730 | 60 echo '/usr/lib/freetype-infinality' >> "$1/etc/ld.so.conf" |
pascal@17552 | 61 chroot "$1/" ldconfig |
al@14225 | 62 echo 'Now you can log out/in to take effect on all your apps' |
al@14225 | 63 } |
al@14225 | 64 |
al@14225 | 65 post_remove() |
al@14225 | 66 { |
pascal@18730 | 67 sed -i '/infinality/d' "$1/etc/profile" |
pascal@18730 | 68 sed -i '/freetype-infinality/d' "$1/etc/ld.so.conf" |
pascal@17552 | 69 chroot "$1/" ldconfig |
al@14225 | 70 } |