wok-next view libmtp/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents e7a485521d6a
children 0f2575775b2d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libmtp"
4 VERSION="1.1.15"
5 CATEGORY="system-tools"
6 SHORT_DESC="Access to MTP devices: mp3 players, Android phones"
7 MAINTAINER="devel@slitaz.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 $PACKAGE-dev"
17 compile_rules() {
18 ./configure \
19 --with-udev=/etc/udev \
20 $CONFIGURE_ARGS &&
21 fix libtool &&
22 make &&
23 make install || return 1
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 genpkg_rules() {
33 case $PACKAGE in
34 libmtp)
35 copy udev/ *.so*
36 DEPENDS="eudev libgcrypt libgpg-error libusb"
37 CAT="system-tools|library"
38 ;;
39 *-tools)
40 copy bin/
41 CAT="system-tools|utilities"
42 ;;
43 *-dev)
44 copy @dev
45 DEPENDS="libmtp mtp-tools \
46 eudev-dev libgcrypt-dev libgpg-error-dev libusb-dev"
47 ;;
48 esac
49 }