wok annotate 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 |
rev | line source |
---|---|
pascal@13591 | 1 # SliTaz package receipt. |
pascal@13591 | 2 |
pascal@13591 | 3 PACKAGE="codiad" |
Hans-G?nter@22611 | 4 #GITHASH="51852c63d85dd961527426c4a157c712a74a0859" |
Hans-G?nter@22611 | 5 #VERSION=${GITHASH:0:7} |
Hans-G?nter@22611 | 6 VERSION="2.8.4" |
pascal@13591 | 7 CATEGORY="office" |
Hans-G?nter@22611 | 8 SHORT_DESC="Web-based IDE framework with a small footprint." |
pascal@13591 | 9 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15579 | 10 LICENSE="MIT" |
pascal@25438 | 11 WEB_SITE="https://github.com/Codiad/Codiad" |
Hans-G?nter@22611 | 12 |
pascal@13591 | 13 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22611 | 14 WGET_URL="https://github.com/Codiad/Codiad/archive/v.$VERSION.tar.gz" |
pascal@13591 | 15 |
pascal@13591 | 16 DEPENDS="php" |
pascal@13591 | 17 |
Hans-G?nter@22611 | 18 CONFIG_FILES="/etc/codiad.php" |
pascal@13591 | 19 |
pascal@25598 | 20 # What is the latest version available today? |
pascal@24055 | 21 current_version() |
pascal@24055 | 22 { |
pascal@24055 | 23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25609 | 24 sed '/tag\//!d;s|.*tag/v*\.||;s|".*||;q' |
pascal@24055 | 25 } |
pascal@24055 | 26 |
pascal@13591 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13591 | 28 genpkg_rules() |
pascal@13591 | 29 { |
Hans-G?nter@22611 | 30 mkdir -p $fs/var/www/codiad |
Hans-G?nter@22611 | 31 mkdir -p $fs/etc |
Hans-G?nter@22611 | 32 |
Hans-G?nter@22611 | 33 cp -a $src/* $fs/var/www/codiad |
Hans-G?nter@22611 | 34 chown -R www.www $fs/var/www/codiad |
Hans-G?nter@22611 | 35 chmod 777 $fs/var/www/codiad/data |
Hans-G?nter@22611 | 36 mv $fs/var/www/codiad/config.example.php \ |
Hans-G?nter@22611 | 37 $fs/etc/codiad.php |
Hans-G?nter@22611 | 38 ln -s /etc/codiad.php $fs/var/www/codiad/config.php |
pascal@13591 | 39 } |