wok-next annotate gammu/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 2809ecb8c754
children d2950281f122
rev   line source
al@20459 1 # SliTaz package receipt v2.
pankso@5674 2
pankso@5674 3 PACKAGE="gammu"
pankso@5674 4 VERSION="1.27.0"
pankso@5674 5 CATEGORY="system-tools"
pankso@5674 6 SHORT_DESC="Library and utility to control cell phone"
pankso@5674 7 MAINTAINER="pankso@slitaz.org"
pascal@15255 8 LICENSE="GPL2"
al@20459 9 WEB_SITE="http://wammu.eu/gammu/"
al@20459 10
pankso@5674 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@5674 12 WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"
pankso@5674 13
al@20459 14 BUILD_DEPENDS="bluez sqlite3 libusb-compat libcurl cmake"
al@20459 15 SPLIT="gammu-dev"
pascal@15255 16
al@20459 17 compile_rules() {
pankso@5674 18 mkdir -p build && cd build
pankso@5674 19 cmake \
pankso@5674 20 -DCMAKE_INSTALL_PREFIX=/usr \
pascal@15265 21 -DBUILD_SHARED_LIBS=ON .. &&
pankso@5674 22 make &&
pascal@15255 23 make DESTDIR=$DESTDIR install
pankso@5674 24 }
pankso@5674 25
al@20459 26 genpkg_rules() {
al@20459 27 case $PACKAGE in
al@20459 28 gammu)
al@20459 29 mkdir -p $fs/usr/lib
al@20459 30 cp -a $install/usr/bin $fs/usr
al@20459 31 rm $fs/usr/bin/gammu-config
al@20459 32 cp -a $install/usr/lib/*.so* $fs/usr/lib
al@20459 33 DEPENDS="bluez sqlite3 libusb-compat libcurl"
al@20459 34 ;;
al@20459 35 *-dev)
al@20459 36 mkdir -p $fs/usr/lib $fs/usr/bin
al@20459 37 cp -a $install/usr/bin/gammu-config $fs/usr/bin
al@20459 38 #cp -a $install/usr/lib/*.*a $fs/usr/lib
al@20459 39 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
al@20459 40 cp -a $install/usr/include $fs/usr
al@20459 41 ;;
al@20459 42 esac
pankso@5674 43 }