SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libmtp"

# SliTaz package receipt.

PACKAGE="libmtp"
VERSION="1.1.19"
CATEGORY="system-tools"
SHORT_DESC="LGPL library implementation of the Media Transfer Protocol (MTP)."
MAINTAINER="keupont@no-log.org"
LICENSE="LGPL2.1"
WEB_SITE="https://sourceforge.net/projects/libmtp/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="libusb udev"
BUILD_DEPENDS="libusb-dev"

# @maintainer:    Please update also mtp-tools

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/libmtp/files/libmtp/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/libmtp/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure        \
        --disable-mtpz    \
        $CONFIGURE_ARGS &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/etc/udev
    mkdir -p $fs/usr/lib

    cp -a $install/usr/lib/*.so*        $fs/usr/lib
    cp -a $install/usr/lib/udev/rules.d    $fs/etc/udev
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)