wok-next diff libofx/receipt @ rev 20520

python-edje, python-gevent-psycopg2, webkitgtk update bdeps ; uclibc-cross-compiler-x86_64 src/install workaround
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 23 09:47:21 2018 +0100 (2018-03-23)
parents f1e8995566a5
children 9e5dca6702bf
line diff
     1.1 --- a/libofx/receipt	Wed Jan 01 20:46:08 2014 +0100
     1.2 +++ b/libofx/receipt	Fri Mar 23 09:47:21 2018 +0100
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="libofx"
     1.8  VERSION="0.9.8"
     1.9 @@ -6,17 +6,15 @@
    1.10  SHORT_DESC="OFX parser library"
    1.11  MAINTAINER="remyhr@free.fr"
    1.12  LICENSE="GPL2"
    1.13 +WEB_SITE="http://libofx.sourceforge.net/"
    1.14 +
    1.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 -WEB_SITE="http://libofx.sourceforge.net/"
    1.17 -WGET_URL="http://sourceforge.net/projects/$PACKAGE/files/$PACKAGE/$VERSION/$TARBALL"
    1.18 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.19  
    1.20 -DEPENDS="opensp"
    1.21  BUILD_DEPENDS="opensp-dev"
    1.22 +SPLIT="libofx-dev"
    1.23  
    1.24 -# Rules to configure and make the package.
    1.25 -compile_rules()
    1.26 -{
    1.27 -	cd $src
    1.28 +compile_rules() {
    1.29  	./configure \
    1.30  		--prefix=/usr \
    1.31  		$CONFIGURE_ARGS &&
    1.32 @@ -24,11 +22,22 @@
    1.33  	make DESTDIR=$DESTDIR install
    1.34  }
    1.35  
    1.36 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 -genpkg_rules()
    1.38 -{
    1.39 -	mkdir -p $fs/usr/bin $fs/usr/include /usr/lib
    1.40 -	cp -a $install/usr/bin $fs/usr
    1.41 -	cp -a $install/usr/include $fs/usr
    1.42 -	cp -a $install/usr/lib $fs/usr
    1.43 +genpkg_rules() {
    1.44 +	case $PACKAGE in
    1.45 +		libofx)
    1.46 +			mkdir -p $fs/usr/bin $fs/usr/include /usr/lib
    1.47 +			cp -a $install/usr/bin $fs/usr
    1.48 +			cp -a $install/usr/include $fs/usr
    1.49 +			cp -a $install/usr/lib $fs/usr
    1.50 +			DEPENDS="opensp"
    1.51 +			;;
    1.52 +		*-dev)
    1.53 +			mkdir -p $fs/usr/share $fs/usr/lib
    1.54 +			cp -a $install/usr/share/libofx $fs/usr/lib
    1.55 +			cp -a $install/usr/include $fs/usr
    1.56 +			cp -a $install/usr/lib/*.*a $fs/usr/lib
    1.57 +			cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.58 +			DEPENDS="libofx opensp-dev"
    1.59 +			;;
    1.60 +	esac
    1.61  }