wok-next view shaarli/receipt @ rev 16307
ARM: now python seems to cross compile (if libpython.so ARM are installed in sysroot)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 08 00:37:42 2014 +0200 (2014-04-08) |
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 }