wok-next diff blogotext/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents d43bf7aae921
children
line diff
     1.1 --- a/blogotext/receipt	Wed Mar 21 15:58:17 2018 +0200
     1.2 +++ b/blogotext/receipt	Fri Nov 02 14:15:08 2018 +0200
     1.3 @@ -1,30 +1,27 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="blogotext"
     1.8  VERSION="2.0.0.0"
     1.9  CATEGORY="network"
    1.10 -SHORT_DESC="Simple blog engine."
    1.11 +SHORT_DESC="Simple blog engine"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="MIT"
    1.14 -WEB_SITE="http://lehollandaisvolant.net/blogotext"
    1.15 +WEB_SITE="https://github.com/BlogoText/blogotext"
    1.16 +
    1.17  TARBALL="$PACKAGE-$VERSION.zip"
    1.18 -URL="$WEB_SITE/archives/$TARBALL"
    1.19 +URL="$WEB_SITE/archives/$TARBALL" # FIXME
    1.20  
    1.21 -DEPENDS="php-gd"
    1.22 +compile_rules() {
    1.23 +	[ -s "$SRC/$TARBALL" ] || wget -O "$SRC/$TARBALL" $URL
    1.24  
    1.25 -# Rules to configure and make the package.
    1.26 -compile_rules()
    1.27 -{
    1.28 -	[ -s "$SRC/$TARBALL" ] || wget -O "$SRC/$TARBALL" $URL
    1.29 -	mkdir -p $DESTDIR/var/www 2>/dev/null
    1.30 -	cd $DESTDIR/var/www
    1.31 +	mkdir -p $install/var/www 2>/dev/null
    1.32 +	cd $install/var/www
    1.33  	unzip "$SRC/$TARBALL"
    1.34 -	chown -R 80.80 $DESTDIR/var/www/blogotext
    1.35 +	chown -R 80.80 $install/var/www/blogotext
    1.36 +	find $install -type f -exec chmod a-x '{}' \;
    1.37  }
    1.38  
    1.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.40 -genpkg_rules()
    1.41 -{
    1.42 +genpkg_rules() {
    1.43  	cp -a $install/* $fs
    1.44 -	find $fs -type f -exec chmod a-x \{\} \;
    1.45 +	DEPENDS="php-gd"
    1.46  }