wok-6.x annotate freetype1/receipt @ rev 24385
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 07 11:38:23 2022 +0000 (2022-02-07) |
parents | a78610b2eb47 |
children |
rev | line source |
---|---|
pascal@2175 | 1 # SliTaz package receipt. |
pascal@2175 | 2 |
pascal@2175 | 3 PACKAGE="freetype1" |
pascal@2175 | 4 SOURCE="freetype" |
pascal@2175 | 5 VERSION="1.3.1" |
pascal@2175 | 6 CATEGORY="x-window" |
pascal@2175 | 7 SHORT_DESC="Freetype1 font engine." |
pascal@2175 | 8 MAINTAINER="rcx@zoominternet.net" |
pascal@15215 | 9 LICENSE="BSD" |
pascal@2175 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@20669 | 11 WEB_SITE="https://www.freetype.org/" |
rcx@3456 | 12 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL" |
pascal@2175 | 13 |
pascal@15215 | 14 DEPENDS="glibc-base" |
pascal@15215 | 15 |
pascal@24385 | 16 # What is the latest version available today? |
pascal@24385 | 17 current_version() |
pascal@24385 | 18 { |
pascal@24385 | 19 wget -O - https://sourceforge.net/projects/freetype/files/freetype/ 2>/dev/null | \ |
pascal@24385 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24385 | 21 sed '/scope="row/!d;s|.*/freetype/||;s|/.*||;q' |
pascal@24385 | 22 } |
pascal@24385 | 23 |
pascal@2175 | 24 # Rules to configure and make the package. |
pascal@2175 | 25 compile_rules() |
pascal@2175 | 26 { |
pascal@2175 | 27 # NOTE: DESTDIR is not recognized by freetype1 make install |
pascal@2175 | 28 |
pascal@2175 | 29 cd $src |
pascal@2175 | 30 ./configure \ |
pascal@15602 | 31 --sysconfdir=$DESTDIR/etc \ |
pascal@15602 | 32 --prefix=$DESTDIR/usr \ |
pascal@15602 | 33 --mandir=$DESTDIR/usr/share/man \ |
pascal@15602 | 34 --includedir=$DESTDIR/usr/include \ |
pascal@15602 | 35 --libdir=$DESTDIR/usr/lib \ |
rcx@3456 | 36 --with-x --enable-gif \ |
pascal@2175 | 37 $CONFIGURE_ARGS && |
pascal@2175 | 38 make ttlib ttpo || return 1 |
pascal@2175 | 39 |
pascal@2179 | 40 cd lib |
pascal@15215 | 41 make DESTDIR=$DESTDIR -f arch/unix/Makefile install || return 1 |
pascal@2179 | 42 cd ../po |
pascal@15215 | 43 make DESTDIR=$DESTDIR -f Makefile install || return 1 |
pascal@2175 | 44 } |
pascal@2175 | 45 |
pascal@2175 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2175 | 47 genpkg_rules() |
pascal@2175 | 48 { |
pascal@2175 | 49 mkdir -p $fs/usr/lib |
pascal@15215 | 50 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@2175 | 51 } |