wok view lionwiki/receipt @ rev 24465
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 17 12:02:46 2022 +0000 (2022-02-17) |
parents | 0e708393407e |
children | 9c057f96ed55 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lionwiki"
4 VERSION="3.2.9"
5 CATEGORY="office"
6 SHORT_DESC="Minimalist Wiki engine programmed in PHP."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://lionwiki.0o.cz/index.php?page=Main+page"
11 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL"
12 CONFIG_FILES="/var/www/lionwikiss/config.php"
13 HOST_ARCH="any"
15 DEPENDS="lighttpd php"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed 's|</li>|&\n|g' | sed '/was released/!d;s|.*LionWiki ||;s| .*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/var/www
34 cp -a $src $fs/var/www/lionwiki
35 chown -R www.www $fs/var/www/lionwiki
36 }