wok view codiad/receipt @ rev 25438

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 01 11:12:31 2022 +0000 (20 months ago)
parents 5ea0ce1cecc0
children fe1b5660fdd1
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 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/v.\(.*\).tar.*|\1|;q'
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/var/www/codiad
30 mkdir -p $fs/etc
32 cp -a $src/* $fs/var/www/codiad
33 chown -R www.www $fs/var/www/codiad
34 chmod 777 $fs/var/www/codiad/data
35 mv $fs/var/www/codiad/config.example.php \
36 $fs/etc/codiad.php
37 ln -s /etc/codiad.php $fs/var/www/codiad/config.php
38 }