wok-stable view wikiss/receipt @ rev 8357
Up: xchm to 1.18.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Feb 03 15:46:09 2011 +0000 (2011-02-03) |
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", "\€", $CONTENT); // (e)\n\t $CONTENT = preg_replace("/\\([yY]\\)/Umsi", "\¥", $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 }