wok annotate irrlicht/receipt @ rev 24412

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 09 21:05:34 2022 +0000 (2022-02-09)
parents 72b03b7176b7
children cea69b44d76b
rev   line source
pascal@17696 1 # SliTaz package receipt.
pascal@17696 2
pascal@17696 3 PACKAGE="irrlicht"
Hans-G?nter@21061 4 VERSION="1.8.4"
pascal@17696 5 CATEGORY="development"
Hans-G?nter@21061 6 SHORT_DESC="High performance realtime 3D engine written in C++."
pascal@17696 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17696 8 LICENSE="zlib/libpng"
Hans-G?nter@21061 9 WEB_SITE="http://irrlicht.sourceforge.net/"
Hans-G?nter@21061 10
pascal@17696 11 TARBALL="$PACKAGE-$VERSION.zip"
pascal@17696 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@17696 13
Hans-G?nter@21061 14 DEPENDS="gcc-lib-base libxcb mesa xorg-libXfixes"
Hans-G?nter@21061 15 BUILD_DEPENDS="mesa-dev xorg-dev"
pascal@17696 16
pascal@24412 17 # What is the latest version available today?
pascal@24412 18 current_version()
pascal@24412 19 {
pascal@24412 20 wget -O - 'https://sourceforge.net/projects/irrlicht/files/Irrlicht SDK/' 2>/dev/null | \
pascal@24412 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24412 22 sed '/scope="row/!d;s|.*SDK/.\../||;s|/.*||;q'
pascal@24412 23 }
pascal@24412 24
pascal@17696 25 # Rules to configure and make the package.
pascal@17696 26 compile_rules()
pascal@17696 27 {
pascal@17696 28 cd $src/source/Irrlicht
pascal@17696 29 sed -i "s|^INSTALL_DIR.*|INSTALL_DIR = $DESTDIR/usr/lib|" Makefile
Hans-G?nter@21061 30
pascal@17696 31 make sharedlib &&
pascal@17696 32 make &&
pascal@17696 33 make install
pascal@17696 34 }
pascal@17696 35
pascal@17696 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17696 37 genpkg_rules()
pascal@17696 38 {
pascal@17696 39 mkdir -p $fs/usr
pascal@17696 40 cp -a $install/usr/lib $fs/usr
pascal@17696 41 }