wok annotate wikiss/receipt @ rev 25063

nfs-utils: update web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 07 20:10:22 2022 +0000 (2022-06-07)
parents 3e2a0347b2f1
children
rev   line source
pascal@5488 1 # SliTaz package receipt.
pascal@5488 2
pascal@5488 3 PACKAGE="wikiss"
pascal@5488 4 VERSION="0.3"
pascal@5488 5 CATEGORY="office"
pascal@5488 6 SHORT_DESC="Tiny Wiki Engine in french."
pascal@5488 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15001 8 LICENSE="GPL2"
pascal@14355 9 TARBALL="$PACKAGE-$VERSION.tgz"
pascal@5488 10 WEB_SITE="http://wikiss.tuxfamily.org/"
pascal@14355 11 WGET_URL="http://download.tuxfamily.org/$PACKAGE/${VERSION%.*}.x/$VERSION.tgz"
pascal@15001 12 CONFIG_FILES="/var/www/wikiss/_config.php"
pascal@16264 13 HOST_ARCH="any"
pascal@15001 14
pascal@5488 15 DEPENDS="lighttpd php"
pascal@5488 16
pascal@24074 17 current_version()
pascal@24074 18 {
pascal@24074 19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24075 20 sed '/tgz/!d;s|.*href="\(.*\).tgz".*|\1|' | sort -Vr | sed q
pascal@24074 21 }
pascal@24074 22
pascal@5488 23 # Rules to configure and make the package.
pascal@5488 24 compile_rules()
pascal@5488 25 {
pascal@5488 26 mv $PACKAGE $src 2> /dev/null
pascal@5488 27 cd $src
pascal@5531 28 sed -i -e 's/strpos(\$CONTENT/true || &/' \
pascal@5531 29 -e 's|^.*cC.*$|\t $CONTENT = preg_replace("/\\([eE]\\)/Umsi", "\&euro;", $CONTENT); // (e)\n\t $CONTENT = preg_replace("/\\([yY]\\)/Umsi", "\&yen;", $CONTENT); // (y)\n&|' index.php
pascal@5488 30 }
pascal@5488 31
pascal@5488 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@5488 33 genpkg_rules()
pascal@5488 34 {
pascal@5488 35 mkdir -p $fs/var/www
pascal@5488 36 cp -a $src $fs/var/www/wikiss
pascal@5488 37 rm -f $fs/var/www/wikiss/historique/*/*.bak
pascal@10787 38 cp -a $stuff/* $fs/var/www/wikiss/
pascal@5488 39 chown -R www.www $fs/var/www/wikiss
pascal@5488 40 }