Package Details: mtkclient-git 1.63.r116.g8e46df6-1

Git Clone URL: https://aur.archlinux.org/mtkclient-git.git (read-only, click to copy)
Package Base: mtkclient-git
Description: Unofficial MTK reverse engineering and flash tool
Upstream URL: https://github.com/bkerler/mtkclient
Licenses: GPL-3.0-only
Conflicts: mtkclient
Provides: mtkclient
Submitter: BenTheTechGuy
Maintainer: xiota
Last Packager: xiota
Votes: 4
Popularity: 0.67
First Submitted: 2022-06-11 21:15 (UTC)
Last Updated: 2024-05-13 18:36 (UTC)

Latest Comments

1 2 Next › Last »

dreieck commented on 2024-04-28 11:37 (UTC)

Applying patch fails for me:

==> Starting prepare()...
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/setup.py b/setup.py
|index 1ab2d68..fdfc2e5 100755
|--- a/setup.py
|+++ b/setup.py
--------------------------
File to patch: 

Regards!

ookiineko commented on 2024-03-06 16:06 (UTC) (edited on 2024-03-06 16:08 (UTC) by ookiineko)

changes I've used to update the PKGBUILD and udev.patch:

diff --git a/PKGBUILD b/PKGBUILD
index ac33444..7ef0148 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Ben Westover <kwestover.kw@gmail.com>

 pkgname=mtkclient-git
-pkgver=1.63.r38.gb63c933
+pkgver=1.63.r61.ge33a28d
 pkgrel=1
 pkgdesc="Unofficial MTK reverse engineering and flash tool"
 arch=('any')
@@ -15,8 +15,8 @@ source=("git+https://github.com/bkerler/mtkclient.git"
         "scripts-and-data-files.patch"
         "udev.patch")
 sha256sums=('SKIP'
-            'd156e692d36fb48f9d385598a2b888ddf3bf0fea182cf9757a71c971c144f710'
-            'd4b6d7967324e585f69c51257e4293f390291a9534e697eefc94568d169220bc')
+            '7beb9e87ed93ad8fc8ed65bceb05e160498e0afa4733eaaaf6ffa875405656b4'
+            '6a16bed5c95da6f399d427e382410e1c0d75ef42ba7e48bbb30c0afee9fa1efc')

 pkgver() {
    cd mtkclient
@@ -42,5 +41,5 @@ build() {
 package() {
    cd mtkclient
    python -m installer --destdir="$pkgdir" dist/*.whl
-   install -Dm644 Setup/Linux/51-edl.rules "$pkgdir/usr/lib/udev/rules.d/52-mtk-edl.rules"
+   install -Dm644 mtkclient/Setup/Linux/51-edl.rules "$pkgdir/usr/lib/udev/rules.d/52-mtk-edl.rules"
 }
diff --git a/udev.patch b/udev.patch
index dce3a2c..9f0d796 100644
--- a/udev.patch
+++ b/udev.patch
@@ -1,7 +1,7 @@
 diff --git a/Setup/Linux/51-edl.rules b/Setup/Linux/51-edl.rules
 index 95e5594..ee2f384 100755
---- a/Setup/Linux/51-edl.rules
-+++ b/Setup/Linux/51-edl.rules
+--- a/mtkclient/Setup/Linux/51-edl.rules
++++ b/mtkclient/Setup/Linux/51-edl.rules
 @@ -1,15 +1,15 @@

  # Qualcomm EDL

The contents in the updated scripts-and-data-files.patch:

diff --git a/pyproject.toml b/pyproject.toml
index 37d4e7c..1e6d6f0 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -26,7 +26,7 @@ dependencies = [
 classifiers = [
   "Development Status :: 4 - Beta",
   "Programming Language :: Python :: 3",
-  "License :: OSI Approved :: GPLv3 License",
+  "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
   "Operating System :: OS Independent",
 ]
 keywords = ["mediatek", "mtk", "flashing", "reverse engineering", "firmware"]
@@ -35,14 +35,8 @@ keywords = ["mediatek", "mtk", "flashing", "reverse engineering", "firmware"]
 Repository = "https://github.com/bkerler/mtkclient.git"
 Issues = "https://github.com/bkerler/mtkclient/issues"

-[project.scripts]
-mtk = "mtk:main"
-stage2 = "stage2:main"
-
-[project.gui-scripts]
-mtk_gui = "mtk_gui:main"
-
 [tool.setuptools]
 # See also the MANIFEST.in file.
 # We want to install all the files in the package directories...
-include-package-data = true
\ No newline at end of file
+include-package-data = true
+script-files = ["mtk", "stage2", "mtk_gui"]
diff --git a/MANIFEST.in b/MANIFEST.in
index e624abe..66a83a6 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,5 +1,3 @@
-include README.md
-include LICENSE
 include mtkclient/Loader/*.bin
 include mtkclient/Loader/Preloader/*.bin
 include mtkclient/payloads/*.bin

xiota commented on 2024-03-02 17:37 (UTC)

Clean chroot.

==> Starting prepare()...
can't find file to patch at input line 5

BenTheTechGuy commented on 2023-10-24 17:22 (UTC)

Sorry for the inactivity, I have been very busy lately. Everything mentioned is now addressed.

dreieck commented on 2023-10-19 08:09 (UTC)

Upstream documentation mentions a GUI:

python mtk_gui

Can you please install an executable /usr/bin/mtk_gui which launches the GUI?

Regards and
thanks for the package!

dreieck commented on 2023-10-18 21:33 (UTC)

This PKGBUILD installs /usr/README.md and /usr/LICENSE.

Those files must not be installed into /usr/.

Instead, please install into

  • /usr/share/doc/mtkclient/README.md and
  • /usr/share/licenses/mtkclient-git/LICENSE.

Thanks for maintaining!

Skaendo commented on 2023-09-10 09:50 (UTC)

I have made a bunch of updates, fixes and patches, probably too many to list here.

So, I have a copy here: https://gitlab.com/skaendo/pkgbuild/-/tree/main/mtkclient-git

FabioLolix commented on 2023-08-20 20:45 (UTC)

Hello, the license is GPL3, GPL is GPL2 in Arch packaging, see Licenses package

aa13q commented on 2023-06-28 12:52 (UTC) (edited on 2023-06-28 12:52 (UTC) by aa13q)

changes I've used to update the PKGBUILD and usb.patch:

diff --git a/PKGBUILD b/PKGBUILD
index af148e0..2940118 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Ben Westover <kwestover.kw@gmail.com>

 pkgname=mtkclient-git
-pkgver=1.52.r201.ga92d6cd
+pkgver=1.9.r105.g3e696d4
 pkgrel=1
 pkgdesc="Unofficial MTK reverse engineering and flash tool"
 arch=('any')
@@ -15,7 +15,7 @@ install=mtkclient.install
 source=("git+https://github.com/bkerler/mtkclient.git"
         "usb.patch")
 sha256sums=('SKIP'
-            '304b558e4d20e4a9b6df125b4eda55c010b1ec3be8dccc9de48c1aafeae60b52')
+            '953b4111910056208b032573b0c34d886490efda06ada46f9718a70d15f891d2')

 pkgver() {
    cd mtkclient
diff --git a/usb.patch b/usb.patch
index 34e6f98..3a84ff4 100644
--- a/usb.patch
+++ b/usb.patch
@@ -11,14 +11,14 @@ index 9a0199a..a2e0af9 100644
      "pyside6",
      "mock"
 diff --git a/requirements.txt b/requirements.txt
-index ade5059..4ef9d06 100644
+index 4e111b5..bff165c 100644
 --- a/requirements.txt
 +++ b/requirements.txt
-@@ -2,7 +2,6 @@ wheel
- pyusb
- pycryptodome
- colorama
--usb
- shiboken6
- pyside6
- mock
+@@ -3,7 +3,6 @@ pyusb >= 1.2.1
+ pycryptodome >= 3.15.0
+ pycryptodomex
+ colorama >= 0.4.4
+-usb >= 0.0.83.dev0
+ shiboken6 >= 6.4.0.1
+ pyside6 >= 6.4.0.1
+ mock >= 4.0.3

bkb commented on 2023-03-12 05:06 (UTC) (edited on 2023-03-12 15:16 (UTC) by bkb)

$ wl-paste | patch -p1 -d /home/$USER/.cache/paru/clone/mtkclient-git/ # Patch of @erikeah
patching file PKGBUILD
Hunk #2 succeeded at 15 with fuzz 1.
patching file usb.patch

$ paru -S mtkclient-git
Hunk #1 FAILED at 2.
1 out of 1 hunk FAILED -- saving rejects to file requirements.txt.rej
==> ERROR: A failure occurred in prepare().
    Aborting...
error: failed to build 'mtkclient-git-1.52.r201.ga92d6cd-1': 
error: packages failed to build: mtkclient-git-1.52.r201.ga92d6cd-1

cd /home/$USER/.cache/paru/clone/mtkclient-git; makepkg; paru -U /home/$USER/.cache/paru/clone/mtkclient-git/mtkclient-git*.pkg.tar.zst; paru -Q $(cat /home/$USER/.cache/paru/clone/mtkclient-git/PKGBUILD | grep pkgname= | cut -d'=' -f2); cd seems to get it right

@taotieren why asking to the user to apply the rules himself? Can't it be done through the installation of the package? @erikeah Why don't you add to the patch the work of @taotieren

I just ended up cloning manually the repo, not understanding at all how to make a package