wok-6.x annotate libmtp/receipt @ rev 24415
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 10 18:04:02 2022 +0000 (2022-02-10) |
parents | 849f794ecc3b |
children | 08fec96a32ad |
rev | line source |
---|---|
keupont@2883 | 1 # SliTaz package receipt. |
keupont@2883 | 2 |
keupont@2883 | 3 PACKAGE="libmtp" |
Hans-G?nter@23089 | 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" |
al@17021 | 9 WEB_SITE="http://libmtp.sourceforge.net/" |
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 |
pascal@24411 | 17 # What is the latest version available today? |
pascal@24411 | 18 current_version() |
pascal@24411 | 19 { |
pascal@24411 | 20 wget -O - https://sourceforge.net/projects/libmtp/files/libmtp/ 2>/dev/null | \ |
pascal@24411 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24411 | 22 sed '/scope="row/!d;s|.*/libmtp/||;s|/.*||;q' |
pascal@24411 | 23 } |
pascal@24411 | 24 |
keupont@2883 | 25 # Rules to configure and make the package. |
keupont@2883 | 26 compile_rules() |
keupont@2883 | 27 { |
Hans-G?nter@23089 | 28 ./configure \ |
Hans-G?nter@23089 | 29 --disable-mtpz \ |
Hans-G?nter@23089 | 30 $CONFIGURE_ARGS && |
Hans-G?nter@21261 | 31 make -j 1 && |
Hans-G?nter@21261 | 32 make install |
keupont@2883 | 33 } |
keupont@2883 | 34 |
keupont@2883 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
keupont@2883 | 36 genpkg_rules() |
keupont@2883 | 37 { |
Hans-G?nter@21261 | 38 mkdir -p $fs/usr/lib |
Hans-G?nter@21261 | 39 mkdir -p $fs/etc/udev |
al@17021 | 40 |
Hans-G?nter@21261 | 41 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21261 | 42 cp -a $install/usr/lib/udev/rules.d $fs/etc/udev |
keupont@2883 | 43 } |