wok-next annotate antinat/receipt @ rev 19265

Compress manpages.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jul 04 10:05:09 2016 +0300 (2016-07-04)
parents 7896f0694ef6
children 11b5e93cb5f2
rev   line source
pascal@14593 1 # SliTaz package receipt.
pascal@14593 2
pascal@14593 3 PACKAGE="antinat"
pascal@14593 4 VERSION="0.90"
pascal@14593 5 CATEGORY="network"
pascal@14593 6 SHORT_DESC="Flexible SOCKS server & client library for proxy-based applications."
pascal@14593 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
pascal@14593 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@14593 10 WEB_SITE="http://antinat.sourceforge.net/"
pascal@14593 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@14593 12
pascal@14593 13 DEPENDS="expat"
pascal@14593 14 BUILD_DEPENDS="expat-dev"
pascal@14593 15
pascal@14593 16 # Rules to configure and make the package.
pascal@14593 17 compile_rules()
pascal@14593 18 {
pascal@14593 19 ./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS &&
pascal@14593 20 make &&
pascal@14593 21 make prefix=$DESTDIR/usr install
al@19265 22
al@19265 23 for i in 1 3 4; do
al@19265 24 mkdir -p $install/usr/share/man/man$i
al@19265 25 cp -a $src/man/*.$i $install/usr/share/man/man$i
al@19265 26 done
al@19265 27 cook_compress_manpages
pascal@14593 28 }
pascal@14593 29
al@19265 30 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19265 31 genpkg_rules()
pascal@14593 32 {
pascal@14593 33 mkdir -p $fs/usr/lib $fs/etc
pascal@14593 34 cp $src/etc/antinat.xml $fs/etc
pascal@14593 35 chmod 600 $fs/etc/antinat.xml
pascal@14593 36 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@14593 37 cp -a $install/usr/bin $fs/usr
pascal@14593 38 cp -a $install/usr/var $fs
pascal@14593 39 }