Github messages for voidlinux
 help / color / mirror / Atom feed
From: dkwo <dkwo@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] android-file-transfer-linux: add libmtp to depends
Date: Thu, 14 Dec 2023 16:43:47 +0100	[thread overview]
Message-ID: <20231214154347.9lTbwqkwTsE34328CtHFZmdEX4O4RYRncn6MIznPyZ8@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-47378@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 395 bytes --]

There is an updated pull request by dkwo against master on the void-packages repository

https://github.com/dkwo/void-packages aft
https://github.com/void-linux/void-packages/pull/47378

android-file-transfer-linux: add libmtp to depends
it's missing udev rules

- I tested the changes in this PR: yes

A patch file from https://github.com/void-linux/void-packages/pull/47378.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-aft-47378.patch --]
[-- Type: text/x-diff, Size: 3582 bytes --]

From 2e6e0eb0e73bf4b6554c34ccdf0e99cbdfa8ac58 Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Tue, 12 Dec 2023 16:13:31 -0500
Subject: [PATCH 1/2] libmtp: split tools/examples, udev rules

---
 srcpkgs/libmtp-udev     |  1 +
 srcpkgs/libmtp/template | 21 +++++++++++++++++++--
 srcpkgs/mtp-tools       |  1 +
 3 files changed, 21 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/libmtp-udev
 create mode 120000 srcpkgs/mtp-tools

diff --git a/srcpkgs/libmtp-udev b/srcpkgs/libmtp-udev
new file mode 120000
index 0000000000000..e966e1f9db2e5
--- /dev/null
+++ b/srcpkgs/libmtp-udev
@@ -0,0 +1 @@
+libmtp
\ No newline at end of file
diff --git a/srcpkgs/libmtp/template b/srcpkgs/libmtp/template
index 8f87793b08e4d..f280d0869854c 100644
--- a/srcpkgs/libmtp/template
+++ b/srcpkgs/libmtp/template
@@ -1,12 +1,13 @@
 # Template file for 'libmtp'
 pkgname=libmtp
 version=1.1.21
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--disable-static --with-udev=/usr/lib/udev
  --with-udev-group=plugdev"
 hostmakedepends="pkg-config"
 makedepends="libgcrypt-devel libusb-devel"
+depends="libmtp-udev"
 short_desc="Library for Microsoft's Media Transfer Protocol (MTP)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="LGPL-2.1-or-later"
@@ -17,7 +18,7 @@ checksum=c4ffa5ab8c8f48c91b0047f2e253c101c418d5696a5ed65c839922a4280872a7
 
 if [ "$CROSS_BUILD" ]; then
 	# XXX needs host mtp-hotplug
-	hostmakedepends+=" libmtp"
+	hostmakedepends+=" mtp-tools"
 fi
 
 pre_configure() {
@@ -35,3 +36,19 @@ libmtp-devel_package() {
 		vmove "usr/lib/*.so"
 	}
 }
+
+libmtp-udev_package() {
+	short_desc+=" - udev rules"
+	pkg_install() {
+		vmove usr/lib/udev/hwdb.d/69-libmtp.hwdb
+		vmove usr/lib/udev/rules.d/69-libmtp.rules
+	}
+}
+
+mtp-tools_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - example tools"
+	pkg_install() {
+		vmove "usr/bin/*"
+	}
+}
diff --git a/srcpkgs/mtp-tools b/srcpkgs/mtp-tools
new file mode 120000
index 0000000000000..e966e1f9db2e5
--- /dev/null
+++ b/srcpkgs/mtp-tools
@@ -0,0 +1 @@
+libmtp
\ No newline at end of file

From d96401df51e0e23d969eb8bbc84f5c948be76946 Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Fri, 24 Nov 2023 16:55:28 -0500
Subject: [PATCH 2/2] android-file-transfer-linux: add libmtp-udev to depends,
 update to 4.3

it ships libmtp-ng but no udev rules
---
 srcpkgs/android-file-transfer-linux/template | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/android-file-transfer-linux/template b/srcpkgs/android-file-transfer-linux/template
index 4480fb0ab6692..430deb820282f 100644
--- a/srcpkgs/android-file-transfer-linux/template
+++ b/srcpkgs/android-file-transfer-linux/template
@@ -1,15 +1,16 @@
 # Template file for 'android-file-transfer-linux'
 pkgname=android-file-transfer-linux
-version=4.2
-revision=3
+version=4.3
+revision=1
 build_style=cmake
 configure_args="-DBUILD_SHARED_LIB=1"
 hostmakedepends="qt5-qmake qt5-host-tools ninja pkg-config"
 makedepends="file-devel fuse-devel qt5-devel readline-devel
  qt5-tools-devel"
+depends="libmtp-udev"
 short_desc="Android File Transfer for Linux"
 maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
 license="LGPL-2.1-or-later"
 homepage="https://github.com/whoozle/android-file-transfer-linux"
 distfiles="https://github.com/whoozle/android-file-transfer-linux/archive/v${version}.tar.gz"
-checksum=cc607d68e8a18273c9b56975a70a0e68fbdf9d5b903b2727a345a605ff48a19f
+checksum=8ff658630fc820a7ca0b70025aa47d235b7fb64f5cb6a72ca76a7acbf3435128

  parent reply	other threads:[~2023-12-14 15:43 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-24 21:57 [PR PATCH] " dkwo
2023-11-25 16:37 ` biopsin
2023-12-12 20:12 ` dkwo
2023-12-12 20:12 ` [PR PATCH] [Closed]: " dkwo
2023-12-12 21:15 ` dkwo
2023-12-12 21:15 ` [PR PATCH] [Updated] " dkwo
2023-12-12 21:25 ` dkwo
2023-12-13 17:15 ` dkwo
2023-12-14 15:43 ` dkwo [this message]
2023-12-14 15:44 ` dkwo
2023-12-14 15:44 ` dkwo
2023-12-23 19:07 ` [PR PATCH] [Updated] android-file-transfer-linux: depend on libmtp-udev (newly split) dkwo
2023-12-24  8:30 ` dkwo
2023-12-24 20:15 ` dkwo
2023-12-26 18:00 ` dkwo
2023-12-27 16:22 ` dkwo
2024-01-16 22:46 ` dkwo
2024-01-16 23:33 ` tornaria
2024-01-16 23:55 ` dkwo
2024-01-17  0:31 ` tornaria
2024-01-31 21:20 ` dkwo
2024-02-01  0:36 ` Duncaen
2024-02-01  0:37 ` Duncaen
2024-02-01 16:03 ` [PR PATCH] [Closed]: " dkwo
2024-02-01 16:03 ` dkwo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231214154347.9lTbwqkwTsE34328CtHFZmdEX4O4RYRncn6MIznPyZ8@z \
    --to=dkwo@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).