wok-6.x view shaarli/receipt @ rev 16285

libunique: add cflags
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 06 18:57:04 2014 +0000 (2014-04-06)
parents 10e6c72b2c15
children 340c325fd2e9
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"
12 HOST_ARCH="any"
14 DEPENDS="php"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 [ -s "$SOURCES_REPOSITORY/$TARBALL" ] ||
20 wget -O "$SOURCES_REPOSITORY/$TARBALL" $_URL
21 mkdir -p $src 2> /dev/null
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/var/www
28 cd $fs/var/www
29 unzip "$SOURCES_REPOSITORY/$TARBALL"
30 mv $fs/var/www/$PACKAGE* $fs/var/www/$PACKAGE
31 sed -i "s|mt_rand())|mt_rand().'$_URL$$')|" $fs/var/www/$PACKAGE/index.php
32 }
34 post_install()
35 {
36 chown -R www $1/var/www/$PACKAGE
37 }