wok-4.x view wikiss/receipt @ rev 9908

cairo-clock: fix bdeps
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 17 15:22:57 2011 +0200 (2011-05-17)
parents 1a9d64df78f2
children 4cb7a59db958
line source
1 # SliTaz package receipt.
3 PACKAGE="wikiss"
4 VERSION="0.3"
5 CATEGORY="office"
6 SHORT_DESC="Tiny Wiki Engine in french."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$VERSION.tgz"
9 WEB_SITE="http://wikiss.tuxfamily.org/"
10 WGET_URL="http://download.tuxfamily.org/$PACKAGE/${VERSION%.*}.x/$TARBALL"
11 DEPENDS="lighttpd php"
12 CONFIG_FILES="/var/www/wikiss/_config.php"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 mv $PACKAGE $src 2> /dev/null
18 cd $src
19 sed -i -e 's/strpos(\$CONTENT/true || &/' \
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
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/var/www
27 cp -a $src $fs/var/www/wikiss
28 rm -f $fs/var/www/wikiss/historique/*/*.bak
29 chown -R www.www $fs/var/www/wikiss
30 }