wok view drupal/receipt @ rev 24439

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 13 18:01:32 2022 +0000 (2022-02-13)
parents b12f8cb0009c
children 0f4a853f36b4
line source
1 # SliTaz package receipt.
3 PACKAGE="drupal"
4 VERSION="8.8.1"
5 CATEGORY="misc"
6 SHORT_DESC="PHP content management system."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.drupal.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://ftp.drupal.org/files/projects/$TARBALL"
14 SUGGESTED="apache cherokee lighttpd"
15 DEPENDS="mysql php"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/dev/d;/-rc/d;/-beta/d;/-alpha/d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/var/www/drupal
29 cp -a $src/* $fs/var/www/drupal
30 chown -R 80.80 $fs/var/www/drupal
31 }