wok annotate squirrelmail-msg_flags/receipt @ rev 17536
Up: qupzilla, qupzilla-locales (1.8.5)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 23 02:10:01 2015 +0200 (2015-01-23) |
parents | b13ed9740841 |
children | 9e01bc6321ea |
rev | line source |
---|---|
pascal@2255 | 1 # SliTaz package receipt. |
pascal@2255 | 2 |
pascal@2255 | 3 PACKAGE="squirrelmail-msg_flags" |
pascal@2255 | 4 VERSION="1.4.15a-1.4.3" |
pascal@2255 | 5 CATEGORY="network" |
pascal@2255 | 6 SHORT_DESC="Few icons and flags for Web mail." |
pascal@2255 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15200 | 8 LICENSE="GPL2" |
pascal@2255 | 9 SOURCE="msg_flags" |
pascal@2255 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2255 | 11 WEB_SITE="http://www.squirrelmail.org/" |
pascal@15200 | 12 WGET_URL="${WEB_SITE}plugins/$TARBALL" |
pascal@16264 | 13 HOST_ARCH="any" |
pascal@15200 | 14 |
pascal@2255 | 15 DEPENDS="squirrelmail" |
pascal@2255 | 16 |
pascal@9036 | 17 # Rules to configure and make the package. |
pascal@9036 | 18 compile_rules() |
pascal@9036 | 19 { |
pascal@9037 | 20 mkdir -p $DESTDIR |
pascal@9036 | 21 cp -a $src $DESTDIR/$SOURCE |
pascal@9036 | 22 } |
pascal@9036 | 23 |
pascal@2255 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2255 | 25 genpkg_rules() |
pascal@2255 | 26 { |
pascal@2255 | 27 mkdir -p $fs/usr/share/squirrelmail/plugins |
pascal@15200 | 28 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@2255 | 29 } |
pascal@2255 | 30 |
pascal@2255 | 31 post_install() |
pascal@2255 | 32 { |
pascal@2255 | 33 ( cd $1/usr/share/squirrelmail/plugins/$SOURCE |
pascal@2255 | 34 patch -p0 < patches/$SOURCE-squirrelmail-$(. $1/$INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) |
pascal@2255 | 35 echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers |
pascal@2255 | 36 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php |
pascal@2255 | 37 } |
pascal@2255 | 38 |
pascal@2260 | 39 pre_remove() |
pascal@2255 | 40 { |
pascal@2255 | 41 ( cd /usr/share/squirrelmail/plugins/$SOURCE |
pascal@2255 | 42 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) |
pascal@2260 | 43 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers |
pascal@2255 | 44 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2255 | 45 } |