wok view codiad/receipt @ rev 25598

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 12:03:07 2023 +0000 (9 months ago)
parents 8ea0030e77cb
children d79ed38ace18
line source
1 # SliTaz package receipt.
3 PACKAGE="codiad"
4 #GITHASH="51852c63d85dd961527426c4a157c712a74a0859"
5 #VERSION=${GITHASH:0:7}
6 VERSION="2.8.4"
7 CATEGORY="office"
8 SHORT_DESC="Web-based IDE framework with a small footprint."
9 MAINTAINER="pascal.bellard@slitaz.org"
10 LICENSE="MIT"
11 WEB_SITE="https://github.com/Codiad/Codiad"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="https://github.com/Codiad/Codiad/archive/v.$VERSION.tar.gz"
16 DEPENDS="php"
18 CONFIG_FILES="/etc/codiad.php"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
24 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/var/www/codiad
31 mkdir -p $fs/etc
33 cp -a $src/* $fs/var/www/codiad
34 chown -R www.www $fs/var/www/codiad
35 chmod 777 $fs/var/www/codiad/data
36 mv $fs/var/www/codiad/config.example.php \
37 $fs/etc/codiad.php
38 ln -s /etc/codiad.php $fs/var/www/codiad/config.php
39 }