wok view codiad/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents fe1b5660fdd1
children
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 }