wok-current view pingus/receipt @ rev 24083

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 10 11:40:16 2021 +0000 (2021-07-10)
parents 6135577f4d08
children d1f31f5f6401
line source
1 # SliTaz package receipt.
3 # FIXME : Check if the tarball comes with a .desktop and a pixmap files
4 # Then remove the section in genpkg_rules() that creates them
6 PACKAGE="pingus"
7 VERSION="0.7.3"
8 CATEGORY="games"
9 SHORT_DESC="Pingus is a free Lemmings-like game."
10 MAINTAINER="chadi.elahmad@gmail.com"
11 LICENSE="GPL2"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WEB_SITE="https://pingus.seul.org/"
15 WGET_URL="http://pingus.seul.org/files/$TARBALL"
17 DEPENDS="libsdl libsdl-image libsdl-mixer
18 libboost-signals gcc-lib-base"
20 BUILD_DEPENDS="scons
21 libsdl-dev libsdl-image-dev libsdl-mixer-dev
22 libboost-dev libboost-signals-dev "
24 current_version()
25 {
26 wget -O - $WEB_SITE/download.html 2>/dev/null | \
27 sed "/tar/!d;s|.*$PACKAGE-||;s|.tar.*||;q"
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 cd $src
34 scons
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/bin $fs/usr/share/pingus
41 cp -a $src/pingus $fs/usr/bin
42 cp -a $src/data $fs/usr/share/pingus
44 # the tarball doesn't contain any .desktop file, nor a pixmap
45 # let's create them
46 mkdir -p $fs/usr/share/pixmaps
47 mkdir -p $fs/usr/share/applications
48 cp -a $src/data/images/core/editor/actions.png \
49 $fs/usr/share/pixmaps/pingus.png
50 cat > $fs/usr/share/applications/pingus.desktop <<EOF
51 [Desktop Entry]
52 Name=Pingus
53 Exec=pingus -w
54 Type=Application
55 Categories=Application;Game;
56 Icon=pingus
57 EOF
58 }