wok-current view dokuwiki/receipt @ rev 24491

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 18 22:59:06 2022 +0000 (2022-02-18)
parents ad081b892543
children 8d83e2a77e2f
line source
1 # SliTaz package receipt.
3 PACKAGE="dokuwiki"
4 VERSION="20180422b"
5 CATEGORY="development"
6 SHORT_DESC="DokuWiki is a simple to use Wiki aimed at the documentation needs of a smail company."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.dokuwiki.org/dokuwiki"
11 TARBALL="$PACKAGE-$VERSION.tgz"
12 WGET_URL="http://download.dokuwiki.org/src/$PACKAGE/$PACKAGE-2018-04-22b.tgz"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - https://github.com/splitbrain/dokuwiki/tags 2>/dev/null | \
18 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;s|.*stable_||;s|-||g;q'
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/var/www
25 cp -a $src $fs/var/www/dokuwiki
26 chown www.www -R $fs/var/www
27 }