wok-next view libmtp/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | f463de72afe3 |
children | 25deb7c6df08 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libmtp"
4 VERSION="1.1.13"
5 CATEGORY="system-tools"
6 SHORT_DESC="Access to MTP devices: mp3 players, Android phones"
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 BUILD_DEPENDS="libusb-dev libgcrypt-dev"
15 SPLIT="mtp-tools libmtp-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure \
21 --with-udev=/etc/udev \
22 $CONFIGURE_ARGS &&
23 make && make install &&
25 # udev rules in /etc/udev/rules.d/; udev execs in /lib/udev/
26 mkdir -p $install/lib/udev &&
27 mv $install/etc/udev/mtp-probe $install/lib/udev &&
28 sed -i 's#/etc/udev/mtp-probe#/lib/udev/mtp-probe#' \
29 $install/etc/udev/rules.d/69-libmtp.rules
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 case $PACKAGE in
36 libmtp)
37 copy udev/ *.so*
38 DEPENDS="eudev libgcrypt libgpg-error libusb"
39 CAT="system-tools|library"
40 ;;
41 *-tools)
42 copy bin/
43 CAT="system-tools|utilities"
44 ;;
45 *-dev)
46 copy @dev
47 DEPENDS="libmtp mtp-tools \
48 eudev-dev libgcrypt-dev libgpg-error-dev libusb-dev"
49 ;;
50 esac
51 }