wok-next annotate polipo/receipt @ rev 20855
svgcleaner: up (0.9.5); add oxipng
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 26 15:41:27 2018 +0300 (2018-06-26) |
parents | 9e01bc6321ea |
children | d5aab818505e |
rev | line source |
---|---|
al@20491 | 1 # SliTaz package receipt v2. |
paul@6383 | 2 |
paul@6383 | 3 PACKAGE="polipo" |
devl547@16409 | 4 VERSION="1.1.0" |
paul@6383 | 5 CATEGORY="network" |
al@20491 | 6 SHORT_DESC="Small and fast caching web proxy" |
paul@6383 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15375 | 8 LICENSE="MIT" |
al@20491 | 9 WEB_SITE="http://www.pps.jussieu.fr/~jch/software/polipo/" |
al@20491 | 10 |
paul@6383 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
devl547@16409 | 12 WGET_URL="http://www.pps.univ-paris-diderot.fr/~jch/software/files/$PACKAGE/$TARBALL" |
paul@6383 | 13 |
pascal@15375 | 14 BUILD_DEPENDS="texinfo" |
pascal@15375 | 15 |
al@20491 | 16 compile_rules() { |
al@20491 | 17 make all || return 1 |
al@20491 | 18 |
al@20491 | 19 mkdir -p \ |
al@20491 | 20 $install/usr/bin/ \ |
al@20491 | 21 $install/etc/polipo/ \ |
al@20491 | 22 $install/usr/share/polipo/www/doc/ |
al@20491 | 23 cp -a $src/polipo $install/usr/bin |
al@20491 | 24 cp -a $src/config.sample $install/etc/polipo/config |
al@20491 | 25 cp -a $src/forbidden.sample $install/etc/polipo/forbidden |
al@20491 | 26 cp -a $src/localindex.html $install/usr/share/polipo/www/index.html |
al@20491 | 27 cp -a $src/html/* $install/usr/share/polipo/www/doc |
paul@6383 | 28 } |
paul@6383 | 29 |
al@20491 | 30 genpkg_rules() { |
al@20491 | 31 copy @std |
paul@6383 | 32 } |
paul@6383 | 33 |
al@20491 | 34 # Create a disk cache. |
al@20491 | 35 post_install() { |
pascal@18730 | 36 mkdir "$1/var/cache/polipo" |
al@20491 | 37 chown tux.tux "$1/var/cache/polipo" # FIXME? tux? |
al@20491 | 38 } |
paul@6383 | 39 |
paul@6383 | 40 # Remove disk cache. |
al@20491 | 41 post_remove() { |
pascal@18730 | 42 rm -rf "$1/var/cache/polipo" |
al@20491 | 43 } |