wok-next diff gammu/receipt @ rev 20926

psycopg2 -> python-psycopg2; remove psycopg (unsupported)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Aug 22 17:26:14 2018 +0300 (2018-08-22)
parents 2809ecb8c754
children d2950281f122
line diff
     1.1 --- a/gammu/receipt	Sun Oct 29 09:27:29 2017 +0100
     1.2 +++ b/gammu/receipt	Wed Aug 22 17:26:14 2018 +0300
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="gammu"
     1.8  VERSION="1.27.0"
     1.9 @@ -6,17 +6,15 @@
    1.10  SHORT_DESC="Library and utility to control cell phone"
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12  LICENSE="GPL2"
    1.13 +WEB_SITE="http://wammu.eu/gammu/"
    1.14 +
    1.15  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.16 -WEB_SITE="http://wammu.eu/gammu/"
    1.17  WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"
    1.18  
    1.19 -DEPENDS="bluez sqlite3 libusb-compat libcurl"
    1.20 -BUILD_DEPENDS="$DEPENDS cmake"
    1.21 +BUILD_DEPENDS="bluez sqlite3 libusb-compat libcurl cmake"
    1.22 +SPLIT="gammu-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  	mkdir -p build && cd build
    1.30  	cmake \
    1.31  		-DCMAKE_INSTALL_PREFIX=/usr \
    1.32 @@ -25,11 +23,21 @@
    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/lib
    1.40 -	cp -a $install/usr/bin $fs/usr
    1.41 -	rm $fs/usr/bin/gammu-config
    1.42 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.43 +genpkg_rules() {
    1.44 +	case $PACKAGE in
    1.45 +		gammu)
    1.46 +			mkdir -p $fs/usr/lib
    1.47 +			cp -a $install/usr/bin $fs/usr
    1.48 +			rm $fs/usr/bin/gammu-config
    1.49 +			cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.50 +			DEPENDS="bluez sqlite3 libusb-compat libcurl"
    1.51 +			;;
    1.52 +		*-dev)
    1.53 +			mkdir -p $fs/usr/lib $fs/usr/bin
    1.54 +			cp -a $install/usr/bin/gammu-config $fs/usr/bin
    1.55 +			#cp -a $install/usr/lib/*.*a $fs/usr/lib
    1.56 +			cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.57 +			cp -a $install/usr/include $fs/usr
    1.58 +			;;
    1.59 +	esac
    1.60  }