wok annotate wikiss/receipt @ rev 10074

Up: testdisk to 6.12.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 20 05:35:25 2011 +0000 (2011-05-20)
parents 1a9d64df78f2
children 4cb7a59db958
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@5488 8 TARBALL="$VERSION.tgz"
pascal@5488 9 WEB_SITE="http://wikiss.tuxfamily.org/"
pascal@5488 10 WGET_URL="http://download.tuxfamily.org/$PACKAGE/${VERSION%.*}.x/$TARBALL"
pascal@5488 11 DEPENDS="lighttpd php"
pascal@5488 12 CONFIG_FILES="/var/www/wikiss/_config.php"
pascal@5488 13
pascal@5488 14 # Rules to configure and make the package.
pascal@5488 15 compile_rules()
pascal@5488 16 {
pascal@5488 17 mv $PACKAGE $src 2> /dev/null
pascal@5488 18 cd $src
pascal@5531 19 sed -i -e 's/strpos(\$CONTENT/true || &/' \
pascal@5531 20 -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 21 }
pascal@5488 22
pascal@5488 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@5488 24 genpkg_rules()
pascal@5488 25 {
pascal@5488 26 mkdir -p $fs/var/www
pascal@5488 27 cp -a $src $fs/var/www/wikiss
pascal@5488 28 rm -f $fs/var/www/wikiss/historique/*/*.bak
pascal@5488 29 chown -R www.www $fs/var/www/wikiss
pascal@5488 30 }