97.6. libmtp-1.1.23
Talk MTP to a phone or a player — the class gphoto2 cannot reach
1.1.23-1 · LGPL-2.1-or-later · 0.4 SBU · 981.1 KiB, 31 files · 41_system, 758 of 1047 · ports/core/mobile/libmtp
Homepage: https://libmtp.sourceforge.net/
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/mobile.txt:
Android and every other MTP device. gphoto2 covers PTP-mode still cameras only, so without this a phone plugged into a USB port does nothing.
Required by (7): android-file-transfer, calibre, gvfs, kio-extras, rhythmbox, strawberry, vlc.
Sources: libmtp-1.1.23.tar.gz (898.7 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libmtp'
build.sh:
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --disable-static \
--disable-mtpz \
--disable-doxygen \
--disable-rpath \
--with-udev=/usr/lib/udev \
--with-udev-rules=69-libmtp.rules \
--with-udev-group=dialout \
--with-udev-mode=0660
make
make DESTDIR=$PKG install
Programs: mtp-albumart, mtp-albums, mtp-connect, mtp-delfile, mtp-detect, mtp-emptyfolders, mtp-files, mtp-filetree, mtp-folders, mtp-format, mtp-getfile, mtp-getplaylist, mtp-hotplug, mtp-newfolder, mtp-newplaylist, mtp-playlists, mtp-reset, mtp-sendfile, mtp-sendtr, mtp-thumb, mtp-tracks, mtp-trexist.
Libraries: libmtp.so.
Directories: /usr/share/licenses/libmtp.