wok-next annotate shaarli/receipt @ rev 15706
claws-mail: Fix receipt
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Dec 22 18:42:54 2013 +0100 (2013-12-22) |
parents | b2a632fc9587 |
children | d51b2411e55e |
rev | line source |
---|---|
pascal@11566 | 1 # SliTaz package receipt. |
pascal@11566 | 2 |
pascal@11566 | 3 PACKAGE="shaarli" |
pascal@14170 | 4 VERSION="0.0.41beta" |
pascal@11566 | 5 CATEGORY="network" |
pascal@11566 | 6 SHORT_DESC="A minimalist delicious clone." |
pascal@11566 | 7 WEB_SITE="http://sebsauvage.net/wiki/doku.php?id=php:shaarli" |
pascal@11566 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15021 | 9 LICENSE="zlib/libpng" |
pascal@14337 | 10 TARBALL="${PACKAGE}_$VERSION.zip" |
pascal@14337 | 11 _URL="http://sebsauvage.net/files/$TARBALL" |
pascal@11566 | 12 |
pascal@11566 | 13 DEPENDS="php" |
pascal@11566 | 14 |
pascal@11566 | 15 # Rules to configure and make the package. |
pascal@11566 | 16 compile_rules() |
pascal@11566 | 17 { |
pascal@14337 | 18 [ -s "$SOURCES_REPOSITORY/$TARBALL" ] || |
pascal@14337 | 19 wget -O "$SOURCES_REPOSITORY/$TARBALL" $_URL |
pascal@11566 | 20 mkdir -p $src 2> /dev/null |
pascal@11566 | 21 } |
pascal@11566 | 22 |
pascal@11566 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11566 | 24 genpkg_rules() |
pascal@11566 | 25 { |
pascal@14065 | 26 mkdir -p $fs/var/www |
pascal@14064 | 27 cd $fs/var/www |
pascal@14337 | 28 unzip "$SOURCES_REPOSITORY/$TARBALL" |
pascal@14064 | 29 mv $fs/var/www/$PACKAGE* $fs/var/www/$PACKAGE |
pascal@14064 | 30 sed -i "s|mt_rand())|mt_rand().'$_URL$$')|" $fs/var/www/$PACKAGE/index.php |
pascal@11566 | 31 } |
pascal@11566 | 32 |
pascal@11566 | 33 post_install() |
pascal@11566 | 34 { |
pascal@11566 | 35 chown -R www $1/var/www/$PACKAGE |
pascal@11566 | 36 } |