wok-current view primateplunge/receipt @ rev 24505
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 20 12:07:59 2022 +0000 (2022-02-20) |
parents | 6135577f4d08 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="primateplunge"
4 VERSION="1.1"
5 CATEGORY="games"
6 SHORT_DESC="Primate plunge game"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="other"
9 WEB_SITE="https://www.aelius.com/primateplunge/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="${WEB_SITE}$TARBALL"
13 DEPENDS="libsdl-mixer"
14 BUILD_DEPENDS="libsdl-mixer-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 ./configure $CONFIGURE_ARGS && make && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 cp -a $install/* $fs
33 mkdir -p $fs/usr/share/licenses
34 cp $src/COPYING $fs/usr/share/licenses/$PACKAGE
35 }