wok view shaarli/receipt @ rev 14889

Up: python-httplib2 (0.8)
author Claudinei Pereira <claudinei@slitaz.org>
date Wed Jul 24 19:02:34 2013 -0300 (2013-07-24)
parents 40cacec2a7a6
children 10e6c72b2c15
line source
1 # SliTaz package receipt.
3 PACKAGE="shaarli"
4 VERSION="0.0.41beta"
5 CATEGORY="network"
6 SHORT_DESC="A minimalist delicious clone."
7 WEB_SITE="http://sebsauvage.net/wiki/doku.php?id=php:shaarli"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 TARBALL="${PACKAGE}_$VERSION.zip"
10 _URL="http://sebsauvage.net/files/$TARBALL"
12 DEPENDS="php"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 [ -s "$SOURCES_REPOSITORY/$TARBALL" ] ||
18 wget -O "$SOURCES_REPOSITORY/$TARBALL" $_URL
19 mkdir -p $src 2> /dev/null
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/var/www
26 cd $fs/var/www
27 unzip "$SOURCES_REPOSITORY/$TARBALL"
28 mv $fs/var/www/$PACKAGE* $fs/var/www/$PACKAGE
29 sed -i "s|mt_rand())|mt_rand().'$_URL$$')|" $fs/var/www/$PACKAGE/index.php
30 }
32 post_install()
33 {
34 chown -R www $1/var/www/$PACKAGE
35 }