Last active
March 6, 2024 16:13
-
-
Save ookiineko/9cb15ddbfffe3f451520af78041eb096 to your computer and use it in GitHub Desktop.
AUR/mtkclient-git patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 8de93f96c35e34bd773aa1be1fa3742157e31b43 Mon Sep 17 00:00:00 2001 | |
From: Ookiineko <chiisaineko@protonmail.com> | |
Date: Wed, 6 Mar 2024 22:57:03 +0800 | |
Subject: [PATCH] upstream migrated to pyproject.toml | |
Signed-off-by: Ookiineko <chiisaineko@protonmail.com> | |
--- | |
PKGBUILD | 8 +++-- | |
scripts-and-data-files.patch | 55 +++++++++++++++++++++++++++--------- | |
udev.patch | 4 +-- | |
3 files changed, 47 insertions(+), 20 deletions(-) | |
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/scripts-and-data-files.patch b/scripts-and-data-files.patch | |
index c0f6cc8..c35bb25 100644 | |
--- a/scripts-and-data-files.patch | |
+++ b/scripts-and-data-files.patch | |
@@ -1,14 +1,41 @@ | |
-diff --git a/setup.py b/setup.py | |
-index 1ab2d68..fdfc2e5 100755 | |
---- a/setup.py | |
-+++ b/setup.py | |
-@@ -4,8 +4,7 @@ from setuptools import setup, find_packages | |
- setup( | |
- packages=find_packages(), | |
- long_description=open("README.md").read(), | |
-- scripts=['mtk','stage2'], | |
-- data_files = ['LICENSE','README.md'], | |
-+ scripts=['mtk','stage2', 'mtk_gui'], | |
- long_description_content_type="text/markdown", | |
- url='https://github.com/bkerler/mtkclient', | |
- project_urls={ | |
+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 | |
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 | |
-- | |
2.44.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment