SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gammu"

# SliTaz package receipt.

PACKAGE="gammu"
VERSION="1.42.0"
CATEGORY="system-tools"
TAGS="bluetooth"
SHORT_DESC="Library and utility to control cell phone."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://wammu.eu/gammu/"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="https://dl.cihar.com/gammu/releases/$TARBALL"

DEPENDS="bluez libcurl libusb-compat sqlite"
BUILD_DEPENDS="$DEPENDS cmake"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/gammu-[0-9]/!d;s|.*gammu-||;s|/.*||;s|-|.|g;q'
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir    _build &&
    cd    _build &&
    cmake    ..                \
        -D CMAKE_INSTALL_PREFIX=/usr    \
        -D BUILD_SHARED_LIBS=ON &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    rm            $fs/usr/bin/gammu-config
    cook_copy_files        *.so*
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)