wok-6.x view libmtp/receipt @ rev 24919
updated motion (4.3.0 -> 4.4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Apr 10 07:17:22 2022 +0100 (2022-04-10) |
parents | 08fec96a32ad |
children | ad0bc3efbf37 |
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="https://sourceforge.net/projects/libmtp/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="libusb udev"
15 BUILD_DEPENDS="libusb-dev"
17 # @maintainer: Please update also mtp-tools
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/libmtp/files/libmtp/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed '/scope="row/!d;s|.*/libmtp/||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --disable-mtpz \
32 $CONFIGURE_ARGS &&
33 make &&
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/etc/udev
41 mkdir -p $fs/usr/lib
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 cp -a $install/usr/lib/udev/rules.d $fs/etc/udev
45 }