wok-current view pingus/receipt @ rev 25368

libmpd: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 29 10:44:25 2022 +0000 (2022-07-29)
parents 2b0142c9f248
children
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://gitlab.com/pingus/pingus"
15 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$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 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - https://gitlab.com/pingus/pingus/-/tags?sort=updated_desc 2> /dev/null | \
28 sed '/item-title/!d;s|.*>v||;s|<.*||;q'
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 cd $src
35 scons
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/bin $fs/usr/share/pingus
42 cp -a $src/pingus $fs/usr/bin
43 cp -a $src/data $fs/usr/share/pingus
45 # the tarball doesn't contain any .desktop file, nor a pixmap
46 # let's create them
47 mkdir -p $fs/usr/share/pixmaps
48 mkdir -p $fs/usr/share/applications
49 cp -a $src/data/images/core/editor/actions.png \
50 $fs/usr/share/pixmaps/pingus.png
51 cat > $fs/usr/share/applications/pingus.desktop <<EOF
52 [Desktop Entry]
53 Name=Pingus
54 Exec=pingus -w
55 Type=Application
56 Categories=Application;Game;
57 Icon=pingus
58 EOF
59 }