wok-current view syasokoban/receipt @ rev 25713
Up abiword (3.0.5), libwmf (0.2.13), fix wv url
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Jun 14 11:35:21 2024 +0000 (2 months ago) |
parents | 8dd8bab3f0ca |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="syasokoban"
4 VERSION="2.0.1"
5 CATEGORY="games"
6 SHORT_DESC="Sokoban clone."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2 BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://grayskygames.com/sokoban.html"
11 WGET_URL="https://grayskygames.com/sokoban/$TARBALL"
13 DEPENDS="libsdl gcc-lib-base glibc-base"
14 BUILD_DEPENDS="libsdl-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 if [ ! -f gcc44.u.done ]; then
28 patch -p0 < $stuff/gcc44.u
29 touch gcc44.u.done
30 fi
31 make
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin $fs/usr/share/syasokoban $fs/usr/share/applications
38 cp -a $src/syasokoban $src/data $fs/usr/share/syasokoban
39 cp -a $stuff/sokoban.desktop $fs/usr/share/applications
40 cp -a $stuff/syasokoban $fs/usr/bin/syasokoban
41 }