From c8deac17ae6a80aca839a1cdb5292ddbd8c8260e Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Thu, 18 Apr 2024 21:12:51 +0200 Subject: [PATCH] android_file_transfer: enable FUSE userlandfs add-on I got this working some time ago but then I never got to enable it in the recipe. It allows to access a mounted Android phone in Tracker, no Qt needed. Split the Qt app into a separate package so that doing this does not require installing Qt. It allows to access a mounted Android phone in Tracker, no Qt needed. Split the Qt app into a separate package so that doing this does not require installing Qt.. --- .../android_file_transfer-4.3~git.recipe | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/sys-fs/android_file_transfer/android_file_transfer-4.3~git.recipe b/sys-fs/android_file_transfer/android_file_transfer-4.3~git.recipe index 57a4afa66..d06706bee 100644 --- a/sys-fs/android_file_transfer/android_file_transfer-4.3~git.recipe +++ b/sys-fs/android_file_transfer/android_file_transfer-4.3~git.recipe @@ -1,14 +1,13 @@ SUMMARY="Android File Transfer" -DESCRIPTION="Reliable MTP client with minimalistic UI +DESCRIPTION="Reliable MTP client with userlandfs integration Features: -* Simple Qt UI with progress dialogs. * No file size limits. * Automatically renames album cover to make it visible from media player. * No extra dependencies (e.g. libptp/libmtp)." HOMEPAGE="https://whoozle.github.io/android-file-transfer-linux/" COPYRIGHT="2015-2019 Vladimir Menshakov" LICENSE="GNU LGPL v2.1" -REVISION="4" +REVISION="5" srcGitRev="a64c8bec89c2795b09d1ba868c179d4d22e562ec" SOURCE_URI="https://github.com/whoozle/android-file-transfer-linux/archive/$srcGitRev.tar.gz" CHECKSUM_SHA256="056bef1821701f863791b85f9e8c92f71bc6b2fe41829b68c61f7632b3f4c1b8" @@ -21,9 +20,18 @@ SECONDARY_ARCHITECTURES="x86" PROVIDES=" android_file_transfer$secondaryArchSuffix = $portVersion - app:AndroidFileTransfer = $portVersion " REQUIRES=" + haiku$secondaryArchSuffix + userland_fs$secondaryArchSuffix + lib:libcrypto$secondaryArchSuffix + " + +PROVIDES_qt=" + android_file_transfer_qt$secondaryArchSuffix = $portVersion + app:AndroidFileTransfer = $portVersion + " +REQUIRES_qt=" haiku$secondaryArchSuffix lib:libcrypto$secondaryArchSuffix lib:libQt5Core$secondaryArchSuffix @@ -33,6 +41,7 @@ REQUIRES=" BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel + userland_fs$secondaryArchSuffix devel:libcrypto$secondaryArchSuffix devel:libQt5Core$secondaryArchSuffix devel:libQt5Gui$secondaryArchSuffix @@ -52,7 +61,7 @@ BUILD() mkdir -p build cd build cmake .. \ - -DBUILD_FUSE=OFF \ + -DBUILD_FUSE=ON \ -DBUILD_QT_UI=ON \ -DCMAKE_BUILD_TYPE=Release make $jobArgs @@ -61,7 +70,9 @@ BUILD() INSTALL() { mkdir -p $appsDir + mkdir -p $addOnsDir/userlandfs cp build/qt/android-file-transfer "$appsDir/AndroidFileTransfer" + cp build/fuse/aft-mtp-mount "$addOnsDir/userlandfs/android_file_transfer" local APP_SIGNATURE="application/x-vnd.android-file-transfer" local MAJOR="`echo "$portVersion" | cut -d. -f1`" @@ -78,4 +89,6 @@ INSTALL() "$appsDir/AndroidFileTransfer" mimeset -f "$appsDir/AndroidFileTransfer" addAppDeskbarSymlink "$appsDir/AndroidFileTransfer" "Android File Transfer" + + packageEntries qt $appsDir $dataDir }