wok-next diff supertux/receipt @ rev 20565
uemacs: create $install tree
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 10 10:17:15 2018 +0200 (2018-04-10) |
parents | d631e5730234 |
children | a244e109372e |
line diff
1.1 --- a/supertux/receipt Tue Nov 07 10:30:41 2017 +0100 1.2 +++ b/supertux/receipt Tue Apr 10 10:17:15 2018 +0200 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="supertux" 1.8 VERSION="0.3.3" 1.9 @@ -11,15 +11,13 @@ 1.10 WEB_SITE="http://supertux.lethargik.org/" 1.11 WGET_URL="http://supertux.googlecode.com/files/$TARBALL" 1.12 1.13 -DEPENDS="libsdl libsdl-image libsdl-mixer curl physfs openal mesa glew \ 1.14 -supertux-data" 1.15 BUILD_DEPENDS="libsdl-dev libsdl-image-dev libsdl-mixer-dev curl-dev \ 1.16 physfs-dev openal-dev mesa-dev glew-dev cmake libboost-dev libvorbis-dev" 1.17 +SPLIT="supertux-data" 1.18 1.19 # Rules to configure and make the package. 1.20 compile_rules() 1.21 { 1.22 - cd $src 1.23 cp $stuff/menu.h src 1.24 sed -i 's|# include <curl/types.h>||g' src/addon/addon_manager.cpp 1.25 sed -i '1i#include <cstddef>' src/supertux/screen_manager.hpp 1.26 @@ -30,6 +28,18 @@ 1.27 # Rules to gen a SliTaz package suitable for Tazpkg. 1.28 genpkg_rules() 1.29 { 1.30 - mkdir -p $fs/usr 1.31 - cp -a $install/usr/bin $fs/usr 1.32 + case $PACKAGE in 1.33 + supertux) 1.34 + DEPENDS="libsdl libsdl-image libsdl-mixer curl physfs openal \ 1.35 + mesa glew supertux-data" 1.36 + mkdir -p $fs/usr 1.37 + cp -a $install/usr/bin $fs/usr 1.38 + ;; 1.39 + supertux-data) 1.40 + CAT="games|data files" 1.41 + echo Copying data... 1.42 + mkdir -p $fs/usr/share 1.43 + cp -a $install/usr/share/games $fs/usr/share 1.44 + ;; 1.45 + esac 1.46 }