wok-next diff vde2/receipt @ rev 20459

Combine receipts
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 13:45:43 2018 +0200 (2018-03-02)
parents e6615350078d
children 757d032c55c7
line diff
     1.1 --- a/vde2/receipt	Wed Feb 28 16:28:07 2018 +0200
     1.2 +++ b/vde2/receipt	Fri Mar 02 13:45:43 2018 +0200
     1.3 @@ -1,38 +1,47 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="vde2"
     1.8  VERSION="2.3.1"
     1.9  CATEGORY="network"
    1.10 -SHORT_DESC="Virtual Distributed Ethernet."
    1.11 +SHORT_DESC="Virtual Distributed Ethernet"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="http://vde.sourceforge.net/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.17 -WEB_SITE="http://vde.sourceforge.net/"
    1.18  WGET_URL="$SF_MIRROR/vde/$TARBALL"
    1.19  
    1.20 -DEPENDS="openssl"
    1.21  BUILD_DEPENDS="openssl openssl-dev"
    1.22 +SPLIT="vde2-dev"
    1.23  
    1.24 -# Rules to configure and make the package.
    1.25 -compile_rules()
    1.26 -{
    1.27 -	cd $src
    1.28 -	./configure --prefix=/usr \
    1.29 -	--libexecdir=/usr/lib/$PACKAGE \
    1.30 -	--sysconfdir=/etc \
    1.31 -	--mandir=/usr/share/man \
    1.32 -	$CONFIGURE_ARGS &&
    1.33 +compile_rules() {
    1.34 +	./configure \
    1.35 +		--prefix=/usr \
    1.36 +		--libexecdir=/usr/lib/$PACKAGE \
    1.37 +		--sysconfdir=/etc \
    1.38 +		--mandir=/usr/share/man \
    1.39 +		$CONFIGURE_ARGS &&
    1.40  	make &&
    1.41  	make DESTDIR=$DESTDIR install
    1.42  }
    1.43  
    1.44 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.45 -genpkg_rules()
    1.46 -{
    1.47 -	mkdir -p $fs/usr/lib/vde2
    1.48 -	cp -a $install/etc $fs
    1.49 -	cp -a $install/usr/bin $fs/usr
    1.50 -	cp -a $install/usr/sbin $fs/usr
    1.51 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.52 -	cp -a $install/usr/lib/vde2/*.so* $fs/usr/lib/vde2
    1.53 +genpkg_rules() {
    1.54 +	case $PACKAGE in
    1.55 +		vde2)
    1.56 +			mkdir -p $fs/usr/lib/vde2
    1.57 +			cp -a $install/etc $fs
    1.58 +			cp -a $install/usr/bin $fs/usr
    1.59 +			cp -a $install/usr/sbin $fs/usr
    1.60 +			cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.61 +			cp -a $install/usr/lib/vde2/*.so* $fs/usr/lib/vde2
    1.62 +			DEPENDS="openssl"
    1.63 +			;;
    1.64 +		*-dev)
    1.65 +			mkdir -p $fs/usr/lib/vde2
    1.66 +			cp -a $install/usr/lib/*a $fs/usr/lib
    1.67 +			cp -a $install/usr/lib/vde2/*a $fs/usr/lib/vde2
    1.68 +			cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.69 +			cp -a $install/usr/include $fs/usr
    1.70 +			;;
    1.71 +	esac
    1.72  }