wok-next view libmtp/receipt @ rev 20905

Update packages from ISO and LFS backages (all but toolchain)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Aug 07 00:30:45 2018 +0300 (2018-08-07)
parents 25deb7c6df08
children d5aab818505e
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="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 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 }