wok annotate 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 | 72fb3028d8ce |
rev | line source |
---|---|
pascal@1136 | 1 # SliTaz package receipt. |
pascal@1136 | 2 |
pascal@1136 | 3 # FIXME : Check if the tarball comes with a .desktop and a pixmap files |
pascal@1136 | 4 # Then remove the section in genpkg_rules() that creates them |
pascal@1136 | 5 |
pascal@1136 | 6 PACKAGE="pingus" |
slaxemulator@7515 | 7 VERSION="0.7.3" |
pascal@1136 | 8 CATEGORY="games" |
pascal@1136 | 9 SHORT_DESC="Pingus is a free Lemmings-like game." |
pascal@1136 | 10 MAINTAINER="chadi.elahmad@gmail.com" |
pascal@15000 | 11 LICENSE="GPL2" |
pascal@1136 | 12 |
pascal@1136 | 13 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@24942 | 14 WEB_SITE="https://gitlab.com/pingus/pingus" |
pascal@24984 | 15 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL" |
pascal@1136 | 16 |
pankso@3425 | 17 DEPENDS="libsdl libsdl-image libsdl-mixer |
pascal@5005 | 18 libboost-signals gcc-lib-base" |
pascal@1136 | 19 |
pascal@1136 | 20 BUILD_DEPENDS="scons |
pankso@3425 | 21 libsdl-dev libsdl-image-dev libsdl-mixer-dev |
pascal@1136 | 22 libboost-dev libboost-signals-dev " |
pascal@1136 | 23 |
pascal@25368 | 24 # What is the latest version available today? |
pascal@24083 | 25 current_version() |
pascal@24083 | 26 { |
pascal@25368 | 27 wget -O - https://gitlab.com/pingus/pingus/-/tags?sort=updated_desc 2> /dev/null | \ |
pascal@24942 | 28 sed '/item-title/!d;s|.*>v||;s|<.*||;q' |
pascal@24083 | 29 } |
pascal@24083 | 30 |
pascal@1136 | 31 # Rules to configure and make the package. |
pascal@1136 | 32 compile_rules() |
pascal@1136 | 33 { |
pascal@1136 | 34 cd $src |
pascal@1136 | 35 scons |
pascal@1136 | 36 } |
pascal@1136 | 37 |
pascal@1136 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1136 | 39 genpkg_rules() |
pascal@1136 | 40 { |
pankso@10839 | 41 mkdir -p $fs/usr/bin $fs/usr/share/pingus |
pankso@10839 | 42 cp -a $src/pingus $fs/usr/bin |
pankso@10839 | 43 cp -a $src/data $fs/usr/share/pingus |
pascal@1136 | 44 |
pascal@1136 | 45 # the tarball doesn't contain any .desktop file, nor a pixmap |
pascal@1136 | 46 # let's create them |
pankso@10839 | 47 mkdir -p $fs/usr/share/pixmaps |
pankso@10839 | 48 mkdir -p $fs/usr/share/applications |
pankso@10839 | 49 cp -a $src/data/images/core/editor/actions.png \ |
pankso@10839 | 50 $fs/usr/share/pixmaps/pingus.png |
pankso@10839 | 51 cat > $fs/usr/share/applications/pingus.desktop <<EOF |
pascal@1136 | 52 [Desktop Entry] |
pascal@1136 | 53 Name=Pingus |
pascal@1136 | 54 Exec=pingus -w |
pascal@1136 | 55 Type=Application |
pascal@1136 | 56 Categories=Application;Game; |
pascal@1136 | 57 Icon=pingus |
pascal@1136 | 58 EOF |
pascal@1136 | 59 } |