wok-6.x view xrick/receipt @ rev 24427
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 11:42:56 2022 +0000 (2022-02-12) |
parents | eb8067417980 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="xrick"
4 VERSION="021212"
5 CATEGORY="games"
6 SHORT_DESC="Rick Dangerous"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="http://www.bigorno.net/xrick/"
11 WGET_URL="http://www.bigorno.net/xrick/$TARBALL"
13 DEPENDS="libsdl zlib"
14 BUILD_DEPENDS="libsdl-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - http://www.bigorno.net/xrick/ 2>/dev/null | \
20 sed '/"Download"/!d;s|.*xrick-||;s|<.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 make
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin \
34 $fs/usr/share/xrick
36 cp -a $src/$PACKAGE $fs/usr/bin
37 cp -a $src/data.zip $fs/usr/share/xrick
38 cp -a $src/KeyCodes $fs/usr/share/xrick
39 }