wok annotate libmtp/receipt @ rev 24892

Down libtmp (1.1.17), 1.1.19 doesn't detect smartphones (?)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 07 15:38:15 2022 +0000 (2022-04-07)
parents 08fec96a32ad
children ad0bc3efbf37
rev   line source
keupont@2883 1 # SliTaz package receipt.
keupont@2883 2
keupont@2883 3 PACKAGE="libmtp"
pascal@24892 4 VERSION="1.1.17"
keupont@2883 5 CATEGORY="system-tools"
Hans-G?nter@21261 6 SHORT_DESC="LGPL library implementation of the Media Transfer Protocol (MTP)."
keupont@2883 7 MAINTAINER="keupont@no-log.org"
pascal@14714 8 LICENSE="LGPL2.1"
Hans-G?nter@24808 9 WEB_SITE="https://sourceforge.net/projects/libmtp/"
Hans-G?nter@21261 10
keupont@2883 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
keupont@2883 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
keupont@2883 13
al@17025 14 DEPENDS="libusb udev"
al@17025 15 BUILD_DEPENDS="libusb-dev"
pascal@14714 16
Hans-G?nter@24808 17 # @maintainer: Please update also mtp-tools
Hans-G?nter@24808 18
pascal@24411 19 # What is the latest version available today?
pascal@24411 20 current_version()
pascal@24411 21 {
pascal@24411 22 wget -O - https://sourceforge.net/projects/libmtp/files/libmtp/ 2>/dev/null | \
pascal@24411 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24411 24 sed '/scope="row/!d;s|.*/libmtp/||;s|/.*||;q'
pascal@24411 25 }
pascal@24411 26
keupont@2883 27 # Rules to configure and make the package.
keupont@2883 28 compile_rules()
keupont@2883 29 {
Hans-G?nter@23089 30 ./configure \
Hans-G?nter@23089 31 --disable-mtpz \
Hans-G?nter@23089 32 $CONFIGURE_ARGS &&
Hans-G?nter@24808 33 make &&
Hans-G?nter@21261 34 make install
keupont@2883 35 }
keupont@2883 36
keupont@2883 37 # Rules to gen a SliTaz package suitable for Tazpkg.
keupont@2883 38 genpkg_rules()
keupont@2883 39 {
Hans-G?nter@24808 40 mkdir -p $fs/etc/udev
Hans-G?nter@21261 41 mkdir -p $fs/usr/lib
al@17021 42
Hans-G?nter@21261 43 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@21261 44 cp -a $install/usr/lib/udev/rules.d $fs/etc/udev
keupont@2883 45 }