wok view gammu/receipt @ rev 25539

Up perl-test-compile (3.1.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 09 12:11:13 2023 +0000 (22 months ago)
parents af8d823a3077
children
line source
1 # SliTaz package receipt.
3 PACKAGE="gammu"
4 VERSION="1.42.0"
5 CATEGORY="system-tools"
6 TAGS="bluetooth"
7 SHORT_DESC="Library and utility to control cell phone."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://wammu.eu/gammu/"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="https://dl.cihar.com/gammu/releases/$TARBALL"
15 DEPENDS="bluez libcurl libusb-compat sqlite"
16 BUILD_DEPENDS="$DEPENDS cmake"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/gammu-[0-9]/!d;s|.*gammu-||;s|/.*||;s|-|.|g;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir _build &&
29 cd _build &&
30 cmake .. \
31 -D CMAKE_INSTALL_PREFIX=/usr \
32 -D BUILD_SHARED_LIBS=ON &&
33 make &&
34 make install DESTDIR=$DESTDIR
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cook_copy_folders bin
41 rm $fs/usr/bin/gammu-config
42 cook_copy_files *.so*
43 }