wok-6.x annotate 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
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"
Hans-G?nter@22611 11 WEB_SITE="http://codiad.com/"
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@24055 20 current_version()
pascal@24055 21 {
pascal@24055 22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 23 sed '/archive.*tar/!d;s|.*/v.\(.*\).tar.*|\1|;q'
pascal@24055 24 }
pascal@24055 25
pascal@13591 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13591 27 genpkg_rules()
pascal@13591 28 {
Hans-G?nter@22611 29 mkdir -p $fs/var/www/codiad
Hans-G?nter@22611 30 mkdir -p $fs/etc
Hans-G?nter@22611 31
Hans-G?nter@22611 32 cp -a $src/* $fs/var/www/codiad
Hans-G?nter@22611 33 chown -R www.www $fs/var/www/codiad
Hans-G?nter@22611 34 chmod 777 $fs/var/www/codiad/data
Hans-G?nter@22611 35 mv $fs/var/www/codiad/config.example.php \
Hans-G?nter@22611 36 $fs/etc/codiad.php
Hans-G?nter@22611 37 ln -s /etc/codiad.php $fs/var/www/codiad/config.php
pascal@13591 38 }