wok annotate libcaca/receipt @ rev 24447
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 17:51:14 2022 +0000 (2022-02-14) |
parents | 3854832faad3 |
children | dac38080ab6b |
rev | line source |
---|---|
paul@16102 | 1 # SliTaz package receipt. |
paul@16102 | 2 |
paul@16102 | 3 PACKAGE="libcaca" |
paul@18622 | 4 VERSION="0.99.beta19" |
paul@16102 | 5 CATEGORY="graphics" |
paul@16102 | 6 SHORT_DESC="Text mode graphics utilities." |
paul@16102 | 7 MAINTAINER="paul@slitaz.org" |
paul@16102 | 8 LICENSE="GPL2" |
paul@16102 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
paul@16102 | 10 WEB_SITE="http://caca.zoy.org/wiki/libcaca" |
paul@16102 | 11 WGET_URL="http://caca.zoy.org/files/libcaca/$TARBALL" |
paul@16102 | 12 |
paul@16102 | 13 DEPENDS="ncurses imlib2" |
paul@16102 | 14 BUILD_DEPENDS="ncurses-dev imlib2-dev xorg-libX11-dev" |
paul@16102 | 15 |
pascal@24447 | 16 # What is the latest version available today? |
pascal@24447 | 17 current_version() |
pascal@24447 | 18 { |
pascal@24447 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24447 | 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 21 } |
pascal@24447 | 22 |
paul@16102 | 23 # Rules to configure and make the package. |
paul@16102 | 24 compile_rules() |
paul@16102 | 25 { |
paul@16102 | 26 cd $src |
paul@16102 | 27 ./configure --prefix=/usr \ |
paul@16102 | 28 $CONFIGURE_ARGS && |
paul@16102 | 29 make |
paul@16102 | 30 make DESTDIR=$DESTDIR install |
paul@16102 | 31 } |
paul@16102 | 32 |
paul@16102 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@16102 | 34 genpkg_rules() |
paul@16102 | 35 { |
pascal@19805 | 36 # hack for missing iso8859-1 folder |
pascal@19805 | 37 cook xorg-libX11 |
pascal@19805 | 38 |
paul@16102 | 39 mkdir -p $fs/usr/lib $fs/usr/share/X11/locale |
paul@16102 | 40 cp -a $install/usr/bin $fs/usr |
paul@16102 | 41 cp -a $install/usr/lib/*.so* $fs/usr/lib |
paul@18624 | 42 #cp -a $install/usr/lib/jni $fs/usr/lib |
paul@16102 | 43 cp -a $install/usr/share $fs/usr |
paul@16102 | 44 rm -rf $fs/usr/share/man |
paul@16102 | 45 # hack for missing iso8859-1 folder |
paul@16102 | 46 cp -a $WOK/xorg-libX11/install/usr/share/X11/locale/iso8859-1 \ |
paul@16102 | 47 $fs/usr/share/X11/locale |
paul@16102 | 48 } |
paul@16102 | 49 |