wok-next diff antinat/receipt @ rev 19840

Up librsvg (split more), make-slitaz-icons (use rsvg-convert instead of inkscape), faenza-icon-theme (keep original theme), slitaz-icons-faenza (combine light & dark).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Aug 14 15:53:27 2017 +0300 (2017-08-14)
parents 11b5e93cb5f2
children 757d032c55c7
line diff
     1.1 --- a/antinat/receipt	Tue Jul 05 15:34:01 2016 +0300
     1.2 +++ b/antinat/receipt	Mon Aug 14 15:53:27 2017 +0300
     1.3 @@ -1,35 +1,49 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="antinat"
     1.8 -VERSION="0.90"
     1.9 +VERSION="0.91"
    1.10  CATEGORY="network"
    1.11 -SHORT_DESC="Flexible SOCKS server & client library for proxy-based applications."
    1.12 +SHORT_DESC="Flexible SOCKS server & client library for proxy-based applications"
    1.13  MAINTAINER="pascal.bellard@slitaz.org"
    1.14  LICENSE="GPL2"
    1.15 -WEB_SITE="http://antinat.sourceforge.net/"
    1.16 +WEB_SITE="http://www.malsmith.net/antinat/"
    1.17 +
    1.18  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.19 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.20 +#WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.21 +WGET_URL="http://www.malsmith.net/download/?obj=antinat/$VERSION/antinat-source.tar.bz2"
    1.22  
    1.23 -DEPENDS="expat"
    1.24 -BUILD_DEPENDS="expat-dev"
    1.25 +BUILD_DEPENDS="gfortran expat-dev"
    1.26 +SPLIT="antinat-dev"
    1.27  
    1.28  # Rules to configure and make the package.
    1.29  compile_rules()
    1.30  {
    1.31 -	./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS &&
    1.32 +	./configure \
    1.33 +		--sysconfdir=/etc \
    1.34 +		--localstatedir=/var \
    1.35 +		$CONFIGURE_ARGS &&
    1.36  	make &&
    1.37 -	make prefix=$DESTDIR/usr install
    1.38 +	make install
    1.39  
    1.40 -	cook_pick_manpages $src/man/*.1 $src/man/*.3 $src/man/*.4
    1.41 +	# make file readable for web interface, revert file permissions in post-install
    1.42 +	chmod a+r $install/etc/antinat.xml
    1.43  }
    1.44  
    1.45  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.46  genpkg_rules()
    1.47  {
    1.48 -	mkdir -p $fs/usr/lib $fs/etc
    1.49 -	cp $src/etc/antinat.xml $fs/etc
    1.50 -	chmod 600 $fs/etc/antinat.xml
    1.51 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.52 -	cp -a $install/usr/bin $fs/usr
    1.53 -	cp -a $install/usr/var $fs
    1.54 +	case $PACKAGE in
    1.55 +		antinat)
    1.56 +			copy @std var/
    1.57 +			DEPENDS="expat"
    1.58 +			CONFIG_FILES="/etc/antinat.xml"
    1.59 +			;;
    1.60 +		*-dev)
    1.61 +			copy @dev
    1.62 +			;;
    1.63 +	esac
    1.64  }
    1.65 +
    1.66 +post_install_antinat() {
    1.67 +	chmod 600 $1/etc/antinat.xml
    1.68 +}