wok-current view shaarli/receipt @ rev 16151
Add links-dfb (Links with DirectFB support)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 26 23:26:16 2014 +0100 (2014-03-26) |
parents | b2a632fc9587 |
children | d51b2411e55e |
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 LICENSE="zlib/libpng"
10 TARBALL="${PACKAGE}_$VERSION.zip"
11 _URL="http://sebsauvage.net/files/$TARBALL"
13 DEPENDS="php"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 [ -s "$SOURCES_REPOSITORY/$TARBALL" ] ||
19 wget -O "$SOURCES_REPOSITORY/$TARBALL" $_URL
20 mkdir -p $src 2> /dev/null
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/var/www
27 cd $fs/var/www
28 unzip "$SOURCES_REPOSITORY/$TARBALL"
29 mv $fs/var/www/$PACKAGE* $fs/var/www/$PACKAGE
30 sed -i "s|mt_rand())|mt_rand().'$_URL$$')|" $fs/var/www/$PACKAGE/index.php
31 }
33 post_install()
34 {
35 chown -R www $1/var/www/$PACKAGE
36 }