wok annotate libmtp/receipt @ rev 24808
updated libmtp, libmtp-dev and mtp-tools (1.1.17 -> 1.1.19)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 22 16:29:00 2022 +0100 (2022-03-22) |
parents | 65d7d867e0c1 |
children | 81a0a7a51fa6 |
rev | line source |
---|---|
keupont@2883 | 1 # SliTaz package receipt. |
keupont@2883 | 2 |
keupont@2883 | 3 PACKAGE="libmtp" |
Hans-G?nter@24808 | 4 VERSION="1.1.19" |
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 } |