wok view wikiss/receipt @ rev 20570

nss: force arch (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 13 11:15:24 2018 +0100 (2018-12-13)
parents 408c87fa22ca
children 3e2a0347b2f1
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="http://wikiss.tuxfamily.org/"
11 WGET_URL="http://download.tuxfamily.org/$PACKAGE/${VERSION%.*}.x/$VERSION.tgz"
12 CONFIG_FILES="/var/www/wikiss/_config.php"
13 HOST_ARCH="any"
15 DEPENDS="lighttpd php"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mv $PACKAGE $src 2> /dev/null
21 cd $src
22 sed -i -e 's/strpos(\$CONTENT/true || &/' \
23 -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
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/var/www
30 cp -a $src $fs/var/www/wikiss
31 rm -f $fs/var/www/wikiss/historique/*/*.bak
32 cp -a $stuff/* $fs/var/www/wikiss/
33 chown -R www.www $fs/var/www/wikiss
34 }