wok-6.x view codiad/receipt @ rev 25028
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 19 17:04:56 2022 +0000 (2022-05-19) |
parents | 8fd617e454b5 |
children | 8ea0030e77cb |
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="http://codiad.com/"
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 }