wok annotate shaarli/receipt @ rev 15721
Move from undigest: bullet bullet-dev connman-ui cplay dconf dconf-dev dfc dnstop efl efl-dev evolution-data-server evolution-data-server-dev goaccess granite granite-dev granite-demo l3afpad ldm linmodem-hsfmodem marlin marlin-dev miniupnpd
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 26 13:16:14 2013 +0000 (2013-12-26) |
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 } |