wok-6.x view pingus/receipt @ rev 25107
Up open-iscsi (2.0.873)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 22 17:23:49 2022 +0000 (2022-06-22) |
parents | d1f31f5f6401 |
children | 08392a9d42ea |
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 current_version()
25 {
26 wget -O - https://gitlab.com/pingus/pingus/-/tags?sort=updated_desc | \
27 sed '/item-title/!d;s|.*>v||;s|<.*||;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 }