wok annotate gammu/receipt @ rev 15603
Use install instead of _pkg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 06 10:39:07 2013 +0000 (2013-12-06) |
parents | 7326ea8fcc65 |
children | 3badda504cf7 |
rev | line source |
---|---|
pankso@5674 | 1 # SliTaz package receipt. |
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" |
pankso@5674 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@5674 | 10 WEB_SITE="http://wammu.eu/gammu/" |
pankso@5674 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL" |
pankso@5674 | 12 |
pascal@15255 | 13 DEPENDS="bluez sqlite libusb-compat libcurl" |
pascal@15255 | 14 BUILD_DEPENDS="$DEPENDS cmake" |
pascal@15255 | 15 |
pankso@5674 | 16 # Rules to configure and make the package. |
pankso@5674 | 17 compile_rules() |
pankso@5674 | 18 { |
pankso@5674 | 19 cd $src |
pankso@5674 | 20 mkdir -p build && cd build |
pankso@5674 | 21 cmake \ |
pankso@5674 | 22 -DCMAKE_INSTALL_PREFIX=/usr \ |
pascal@15265 | 23 -DBUILD_SHARED_LIBS=ON .. && |
pankso@5674 | 24 make && |
pascal@15255 | 25 make DESTDIR=$DESTDIR install |
pankso@5674 | 26 } |
pankso@5674 | 27 |
pankso@5674 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5674 | 29 genpkg_rules() |
pankso@5674 | 30 { |
pankso@5674 | 31 mkdir -p $fs/usr/lib |
pascal@15255 | 32 cp -a $install/usr/bin $fs/usr |
pankso@5674 | 33 rm $fs/usr/bin/gammu-config |
pascal@15255 | 34 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@5674 | 35 } |