wok-next annotate shaarli/receipt @ rev 13311
freerdp-dev: update genpkg-rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 29 12:46:44 2012 +0200 (2012-08-29) |
parents | cc5eacc5aec2 |
children | c8cdeee7be4b |
rev | line source |
---|---|
pascal@11566 | 1 # SliTaz package receipt. |
pascal@11566 | 2 |
pascal@11566 | 3 PACKAGE="shaarli" |
pascal@13282 | 4 VERSION="0.0.40beta" |
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@11566 | 9 _TARBALL="${PACKAGE}_$VERSION.zip" |
pascal@11566 | 10 _URL="http://sebsauvage.net/files/$_TARBALL" |
pascal@11566 | 11 |
pascal@11566 | 12 DEPENDS="php" |
pascal@11566 | 13 |
pascal@11566 | 14 # Rules to configure and make the package. |
pascal@11566 | 15 compile_rules() |
pascal@11566 | 16 { |
pascal@11566 | 17 [ -s "$SOURCES_REPOSITORY/$_TARBALL" ] || |
pascal@11566 | 18 wget -O "$SOURCES_REPOSITORY/$_TARBALL" $_URL |
pascal@11566 | 19 mkdir -p $src 2> /dev/null |
pascal@11566 | 20 } |
pascal@11566 | 21 |
pascal@11566 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11566 | 23 genpkg_rules() |
pascal@11566 | 24 { |
pascal@11566 | 25 mkdir -p $fs/var/www/$PACKAGE |
pascal@11566 | 26 cd $fs/var/www/$PACKAGE |
pascal@11566 | 27 unzip "$SOURCES_REPOSITORY/$_TARBALL" |
pascal@11566 | 28 } |
pascal@11566 | 29 |
pascal@11566 | 30 post_install() |
pascal@11566 | 31 { |
pascal@11566 | 32 chown -R www $1/var/www/$PACKAGE |
pascal@11566 | 33 } |