wok-6.x view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libmtp"
4 VERSION="1.1.17"
5 CATEGORY="system-tools"
6 SHORT_DESC="LGPL library implementation of the Media Transfer Protocol (MTP)."
7 MAINTAINER="keupont@no-log.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://libmtp.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="libusb udev"
15 BUILD_DEPENDS="libusb-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/libmtp/files/libmtp/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/libmtp/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --disable-mtpz \
30 $CONFIGURE_ARGS &&
31 make -j 1 &&
32 make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
39 mkdir -p $fs/etc/udev
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 cp -a $install/usr/lib/udev/rules.d $fs/etc/udev
43 }