wok annotate syasokoban/receipt @ rev 25106
linux-libre: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 22 14:39:56 2022 +0000 (2022-06-22) |
parents | 8dd8bab3f0ca |
children |
rev | line source |
---|---|
pascal@4071 | 1 # SliTaz package receipt. |
pascal@4071 | 2 |
pascal@4071 | 3 PACKAGE="syasokoban" |
pascal@4071 | 4 VERSION="2.0.1" |
pascal@4071 | 5 CATEGORY="games" |
pascal@4071 | 6 SHORT_DESC="Sokoban clone." |
pascal@4071 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15581 | 8 LICENSE="GPL2 BSD" |
pascal@4071 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20672 | 10 WEB_SITE="https://grayskygames.com/sokoban.html" |
pascal@20672 | 11 WGET_URL="https://grayskygames.com/sokoban/$TARBALL" |
pascal@15581 | 12 |
pascal@4071 | 13 DEPENDS="libsdl gcc-lib-base glibc-base" |
pascal@4071 | 14 BUILD_DEPENDS="libsdl-dev" |
pascal@4071 | 15 |
pascal@24462 | 16 # What is the latest version available today? |
pascal@24462 | 17 current_version() |
pascal@24462 | 18 { |
pascal@24462 | 19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24462 | 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24462 | 21 } |
pascal@24462 | 22 |
pascal@4071 | 23 # Rules to configure and make the package. |
pascal@4071 | 24 compile_rules() |
pascal@4071 | 25 { |
pascal@4071 | 26 cd $src |
pascal@4072 | 27 if [ ! -f gcc44.u.done ]; then |
pascal@8974 | 28 patch -p0 < $stuff/gcc44.u |
pascal@4072 | 29 touch gcc44.u.done |
pascal@4072 | 30 fi |
pascal@4071 | 31 make |
pascal@4071 | 32 } |
pascal@4071 | 33 |
pascal@4071 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4071 | 35 genpkg_rules() |
pascal@4071 | 36 { |
pascal@4071 | 37 mkdir -p $fs/usr/bin $fs/usr/share/syasokoban $fs/usr/share/applications |
pascal@4071 | 38 cp -a $src/syasokoban $src/data $fs/usr/share/syasokoban |
pascal@8974 | 39 cp -a $stuff/sokoban.desktop $fs/usr/share/applications |
pascal@8974 | 40 cp -a $stuff/syasokoban $fs/usr/bin/syasokoban |
pascal@4071 | 41 } |
pascal@4071 | 42 |