wok-next annotate pingus/receipt @ rev 20651

Add grub2-efi-modules (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 04 11:17:26 2018 +0200 (2018-05-04)
parents dd145c435e4b
children 33df80a31584
rev   line source
al@20476 1 # SliTaz package receipt v2.
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"
al@20476 9 SHORT_DESC="Pingus is a free Lemmings-like game"
pascal@1136 10 MAINTAINER="chadi.elahmad@gmail.com"
pascal@15000 11 LICENSE="GPL2"
al@20476 12 WEB_SITE="http://pingus.seul.org/"
pascal@1136 13
pascal@1136 14 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@1136 15 WGET_URL="http://pingus.seul.org/files/$TARBALL"
pascal@1136 16
al@19765 17 BUILD_DEPENDS="scons libsdl-dev libsdl-image-dev libsdl-mixer-dev libboost-dev \
al@20454 18 libboost-signals libpng16-dev"
pascal@1136 19
al@20476 20 compile_rules() {
pascal@20258 21 sed -i 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/screenshot.cpp
al@20476 22 scons || return 1
pascal@1136 23
al@20476 24 mkdir -p $install/usr/bin $install/usr/share/pingus
al@20476 25 cp -a $src/pingus $install/usr/bin
al@20476 26 cp -a $src/data $install/usr/share/pingus
pascal@1136 27
pascal@1136 28 # the tarball doesn't contain any .desktop file, nor a pixmap
pascal@1136 29 # let's create them
al@20476 30 mkdir -p $install/usr/share/pixmaps
al@20476 31 mkdir -p $install/usr/share/applications
al@20476 32 cp $src/data/images/core/editor/actions.png \
al@20476 33 $install/usr/share/pixmaps/pingus.png
al@20476 34 cat > $install/usr/share/applications/pingus.desktop <<EOF
pascal@1136 35 [Desktop Entry]
pascal@1136 36 Name=Pingus
pascal@1136 37 Exec=pingus -w
pascal@1136 38 Type=Application
pascal@1136 39 Categories=Application;Game;
pascal@1136 40 Icon=pingus
pascal@1136 41 EOF
pascal@1136 42 }
al@20476 43
al@20476 44 genpkg_rules() {
al@20476 45 copy @std
al@20476 46 DEPENDS="libsdl libsdl-image libsdl-mixer libboost-signals gcc-lib-base"
al@20476 47 }