wok rev 16325

Up shaarli
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 10 14:56:55 2014 +0000 (2014-04-10)
parents d0e1c4b6c3b0
children 97977e25566a
files shaarli/receipt
line diff
     1.1 --- a/shaarli/receipt	Thu Apr 10 11:04:26 2014 +0000
     1.2 +++ b/shaarli/receipt	Thu Apr 10 14:56:55 2014 +0000
     1.3 @@ -1,6 +1,8 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="shaarli"
     1.7 +GITHASH="48b68c8fa5aa9ca98f3a9aaf9277656fe0cafb01"
     1.8 +VERSION=${GITHASH:0:7}
     1.9  VERSION="0.0.41beta"
    1.10  CATEGORY="network"
    1.11  SHORT_DESC="A minimalist delicious clone."
    1.12 @@ -8,27 +10,18 @@
    1.13  MAINTAINER="pascal.bellard@slitaz.org"
    1.14  LICENSE="zlib/libpng"
    1.15  TARBALL="${PACKAGE}_$VERSION.zip"
    1.16 -_URL="http://sebsauvage.net/files/$TARBALL"
    1.17 +WGET_URL="https://github.com/sebsauvage/Shaarli/archive/$GITHASH.zip"
    1.18  HOST_ARCH="any"
    1.19  
    1.20  DEPENDS="php"
    1.21 -
    1.22 -# Rules to configure and make the package.
    1.23 -compile_rules()
    1.24 -{
    1.25 -	[ -s "$SOURCES_REPOSITORY/$TARBALL" ] ||
    1.26 -		wget -O "$SOURCES_REPOSITORY/$TARBALL" $_URL
    1.27 -	mkdir -p $src 2> /dev/null
    1.28 -}
    1.29 +BUILD_DEPENDS="wget"
    1.30  
    1.31  # Rules to gen a SliTaz package suitable for Tazpkg.   
    1.32  genpkg_rules()                                      
    1.33  {
    1.34  	mkdir -p $fs/var/www
    1.35 -	cd $fs/var/www
    1.36 -	unzip "$SOURCES_REPOSITORY/$TARBALL"
    1.37 -	mv $fs/var/www/$PACKAGE* $fs/var/www/$PACKAGE
    1.38 -	sed -i "s|mt_rand())|mt_rand().'$_URL$$')|" $fs/var/www/$PACKAGE/index.php
    1.39 +	cp -a $src $fs/var/www/$PACKAGE
    1.40 +	sed -i "s|mt_rand())|mt_rand().'$WGET_URL$$')|" $fs/var/www/$PACKAGE/index.php
    1.41  }
    1.42  
    1.43  post_install()