wok-next diff libestr/receipt @ rev 20486

outguess: fix install path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 12 10:46:52 2018 +0100 (2018-03-12)
parents 6c3718ca17b6
children 0ec6086e21d6
line diff
     1.1 --- a/libestr/receipt	Sat Nov 09 17:34:23 2013 +0000
     1.2 +++ b/libestr/receipt	Mon Mar 12 10:46:52 2018 +0100
     1.3 @@ -1,25 +1,33 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="libestr"
     1.8  VERSION="0.1.2"
     1.9  CATEGORY="system-tools"
    1.10 -SHORT_DESC="some essentials for string handling "
    1.11 +SHORT_DESC="Some essentials for string handling"
    1.12  MAINTAINER="erjo@slitaz.org"
    1.13  LICENSE="LGPL2"
    1.14  WEB_SITE="http://libestr.adiscon.com/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17  WGET_URL="http://libestr.adiscon.com/files/download/$TARBALL"
    1.18  
    1.19 -# Rules to configure and make the package.
    1.20 -compile_rules()
    1.21 -{
    1.22 -	cd $src
    1.23 +SPLIT="libestr-dev"
    1.24 +
    1.25 +compile_rules() {
    1.26  	./configure $CONFIGURE_ARGS && make && make install
    1.27  }
    1.28  
    1.29 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 -genpkg_rules()
    1.31 -{
    1.32 -	mkdir -p $fs/usr/lib
    1.33 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.34 +genpkg_rules() {
    1.35 +	case $PACKAGE in
    1.36 +		libestr)
    1.37 +			mkdir -p $fs/usr/lib
    1.38 +			cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.39 +			;;
    1.40 +		*-dev)
    1.41 +			mkdir -p $fs/usr/lib
    1.42 +			cp -a $install/usr/lib/*.a* $fs/usr/lib
    1.43 +			cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.44 +			cp -a $install/usr/include $fs/usr
    1.45 +			;;
    1.46 +	esac
    1.47  }