wok view rubix/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 | 61793c4a69cf |
children | ad9008f821da |
line source
1 # SliTaz package receipt.
3 PACKAGE="rubix"
4 VERSION="1.0.6"
5 CATEGORY="games"
6 SHORT_DESC="A 3D rubiks cube game for X."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="PublicDomain"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://sed.free.fr/rubix"
11 WGET_URL="$WEB_SITE/$TARBALL"
13 DEPENDS="xorg-libX11 libxcb xorg-libXau xorg-libXdmcp"
14 BUILD_DEPENDS="xorg-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --prefix=/usr \
28 $CONFIGURE_ARGS
29 make
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/bin
36 cp -a $src/rubix $fs/usr/bin
37 }