wok-next diff autoblog/receipt @ rev 20916
libopenraw, abiword: update deps; boost: pack unpacked libs
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Aug 21 05:42:25 2018 +0300 (2018-08-21) |
parents | 61b43b7caa89 |
children | 0cbe4b1f2230 |
line diff
1.1 --- a/autoblog/receipt Wed Jan 20 21:39:21 2016 +0100 1.2 +++ b/autoblog/receipt Tue Aug 21 05:42:25 2018 +0300 1.3 @@ -1,46 +1,43 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="autoblog" 1.8 VERSIONV1="0.1.31" 1.9 VERSIONV2="2.5.22" # need php 5.3 1.10 VERSION="$VERSIONV1" 1.11 CATEGORY="network" 1.12 -SHORT_DESC="Replicates articles from another blog." 1.13 +SHORT_DESC="Replicates articles from another blog" 1.14 MAINTAINER="pascal.bellard@slitaz.org" 1.15 LICENSE="PublicDomain" 1.16 +WEB_SITE="http://sebsauvage.net/streisand.me/" 1.17 + 1.18 TARBALL="$PACKAGE-$VERSION" 1.19 EXTRA_SOURCE_FILES="vvb.ini" 1.20 URLV1="http://sebsauvage.net/streisand.me/download.php" 1.21 URLV2="http://autoblog.kd2.org/source.txt" 1.22 URL="$URLV1" 1.23 -WEB_SITE="http://sebsauvage.net/streisand.me/" 1.24 1.25 -DEPENDS="php" 1.26 +compile_rules() { 1.27 + [ -s "$SRC/$TARBALL" ] || 1.28 + wget -O "$SRC/$TARBALL" $URL 1.29 1.30 -# Rules to configure and make the package. 1.31 -compile_rules() 1.32 -{ 1.33 - [ -s "$SOURCES_REPOSITORY/$TARBALL" ] || 1.34 - wget -O "$SOURCES_REPOSITORY/$TARBALL" $URL 1.35 - [ -s "$SOURCES_REPOSITORY/vvb.ini" ] || 1.36 - wget -O "$SOURCES_REPOSITORY/vvb.ini" \ 1.37 - http://sebsauvage.net/streisand.me/sebsauvage/vvb.ini 1.38 - mkdir -p $src 2> /dev/null 1.39 + [ -s "$SRC/vvb.ini" ] || 1.40 + wget -O "$SRC/vvb.ini" http://sebsauvage.net/streisand.me/sebsauvage/vvb.ini 1.41 + mkdir -p $src 1.42 + 1.43 + mkdir -p $install/var/www/$PACKAGE 1.44 + cp $SRC/$TARBALL $install/var/www/$PACKAGE/index.php 1.45 + cp $SRC/vvb.ini $install/var/www/$PACKAGE/ 1.46 + dos2unix $install/var/www/$PACKAGE/* 1.47 + chown -R www $install/var/www/$PACKAGE 1.48 } 1.49 1.50 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.51 -genpkg_rules() 1.52 -{ 1.53 - mkdir -p $fs/var/www/$PACKAGE 1.54 - cp $SOURCES_REPOSITORY/$TARBALL $fs/var/www/$PACKAGE/index.php 1.55 - cp $SOURCES_REPOSITORY/vvb.ini $fs/var/www/$PACKAGE/ 1.56 - dos2unix $fs/var/www/$PACKAGE/* 1.57 +genpkg_rules() { 1.58 + copy @std 1.59 + DEPENDS="php" 1.60 } 1.61 1.62 -post_install() 1.63 -{ 1.64 +post_install() { 1.65 mytz="$(cat "$1/etc/TZ")" 1.66 [ -n "$mytz" ] && sed -i "s|Europe/Paris|$mytz|" "$1/var/www/$PACKAGE/index.php" 1.67 - chown -R www "$1/var/www/$PACKAGE" 1.68 - [ -z "$quiet" ] && echo "You should update /var/www/$PACKAGE/vvb.ini now..." 1.69 + [ -n "$quiet" ] || echo "You should update /var/www/$PACKAGE/vvb.ini now..." 1.70 }